Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add a new language
#1
First of all you need the the environment for sayonara to compile.
Have a look here
Then you need the qt-linguist. On Ubuntu it\'s in the qt-dev-tools package.
Code:
sudo apt-get install qt-dev-tools

Check out Sayonara from SVN because the provided source package does not hold the latest changes
Code:
svn co http://sayonara-player.com/svn/sayonara/trunk/ sayonara


Go to the trunk directory and run
Code:
sh scripts/languages.sh new <name>
where <name> is the iso-639-1 representation of the language, usually 2 letters (en for english, fr for french etc)

Afterwards you open you new generated file
Code:
linguist trunk/src/languages/sayonara_lang_<lang>.ts

TIP
If you know some of the existing languages you can open multiple ts files providing them as arguments. So you have another reference that might be helpful

Linguist
On the left side you see the modules. Every module holds a lot of terms
that need to be translated. Most of them are straight-forward but you
have to take care about a few special cases:
  • Some terms end with a space marked by a dot in the original translation
  • Some terms have arguments. For example \"%1 files were deleted successfully\". The %1 is a placeholder for the number of files. In different languages the number my stand on different places
  • Some terms are in a weird html structure
  • Some terms have an & sign. For example &Webstreams. That means, that Ctrl + W will be a shortcut for the Webstreams dialog. You can place the & sign whereever you consider it on the right position.
    But be careful and use each combination only ONE Time. Ctrl+S and Ctrl+A are reserved so never place a & before an \'s\' or an \'a\'

If you wanna test you can build sayonara normally by
Code:
cmake .
make
(sudo) make install

The language will automatically be installed and you can use it from
then. If you have questions or if you are finished you always can send
me the ts file.


[Edited on 21-12-2015 by Lucio Carreras]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)