lichray / nvi2

A multibyte fork of the nvi editor for BSD
Other
144 stars 34 forks source link

Provide Turkish messages #68

Closed bitigchi closed 4 years ago

bitigchi commented 4 years ago

This PR adds Turkish messages for nvi2.

I installed FreeBSD to try the messages in runtime, but I was unable to set it properly. All of my locale settings are tr_TR.UTF-8, and when I use :set msgcat=/path/to/file, I get "blah blah is not a message catalog". Anyone can walk me through this? Translations are pretty much accurate, but I'd definitely like to test them before it ships in a new version.

lichray commented 4 years ago
  1. Can you rename the file to tr_TR.UTF-8.base and such?
  2. It "works" on my box (but my terminal isn't utf-8 so I can't read; the program accepts this msgcat). I ran make first under the catalog directory, and then did :se msgcat=turkish.
bitigchi commented 4 years ago

I was able to view messages by msgcat command now, thank you. However, I am still unable to display Latin extended characters like ğ, Ğ, ı, İ, ş, and Ş on default terminal under Virtualbox, no GUI installed.

I modified /etc/login.conf, /etc/profile/, /etc/csh.login/ (tried with bash also) with the appropriate entries. I also modified kern.vty as per this page, but didn't work either.

When I set the encoding and locale as tr_TR.UTF-8, I get question marks. If I change it to tr_TR.ISO8859-9, Turkish-specific characters are not displayed at all.

I have no trouble testing with a question mark, but a solution would be great in order to get it displayed right.

rjc commented 4 years ago

@bitigchi There are still some issues with vt(4). Are required fonts installed and configured?

lichray commented 4 years ago

Do they display with cat? If yes, that's not font's problem.

bitigchi commented 4 years ago

@rjc, @lichray apparently it was font related after all. Installing terminus font and changing to it solved the problem.

VirtualBox_FreeBSD_27_02_2020_12_39_48

I will test this for a couple of days, and will let you know when it's good to go!

bitigchi commented 4 years ago

All good to go!