32 | | '''Loading translation''' |
| 27 | ---- |
| 28 | '''Features''' ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 29 | ---- |
| 30 | |
| 31 | * load po file from svn __"File/ Open Source (svn)"__ |
| 32 | * Import po file from svn or local as source __"File/ Import Titan.po"__ |
| 33 | * open local file as target__"File/ Open target (local)"__ |
| 34 | * save target file __"File/ Save Target"__ |
| 35 | * save target file as titan.po __"File/ Save titan.po"__ |
| 36 | * export msg string for external use __"File/ Export msgstr as Titan.po"__ |
| 37 | * Build reciever translation file __"File/ Build Titan.mo"__ |
| 38 | * export sourcefile to target __"Edit/ target.po -> target"__ |
| 39 | * view source target differences __"Edit/ diff target - titan.po"__ |
| 40 | |
| 41 | [[br]] |
| 42 | |
| 43 | ---- |
| 44 | '''Functions''' ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 45 | ---- |
| 46 | |
| 47 | ''Select an item to view more info:'' |
| 48 | |
| 49 | * ([#point9.6.1 Loading a translation from svn]) |
| 50 | * ([#point9.6.2 Loading a Translation from a local directory]) |
| 51 | * ([#point9.6.3 Import Translation from svn or local (Source/ Target Mode)]) |
| 52 | * ([#point9.6.4 Edit Translation]) |
| 53 | * ([#point9.6.5 Submission]) |
| 54 | * ([#point9.6.6 Local Testing]) |
| 55 | |
| 56 | |
| 57 | |
| 58 | ---- |
| 59 | '''Loading a translation from svn''' [=#point9.6.1] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 60 | ---- |
40 | | [[Image(source:/wiki/Wiki-Pictures/RU/TLE/loading_server.png)]] [[br]] |
| 68 | [[Image(source:/wiki/Wiki-Pictures/RU/TLE/loading_server.jpg)]] [[br]] |
| 69 | |
| 70 | [[br]] |
| 71 | ([#point9.6 Top of Page]) |
| 72 | [[br]] |
| 73 | |
| 74 | ---- |
| 75 | '''Loading a Translation from a local directory''' [=#point9.6.2] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 76 | ---- |
| 77 | |
| 78 | To load a translation from the local directory select the translation file from the menu: [[br]] |
| 79 | |
| 80 | [[Image(source:/wiki/Wiki-Pictures/RU/TLE/open_local.jpg)]] [[br]] |
| 81 | |
| 82 | [[br]] |
| 83 | ([#point9.6 Top of Page]) |
| 84 | [[br]] |
| 85 | |
| 86 | ---- |
| 87 | '''Import Translation from svn or local (Source/ Target Mode)'''[=#point9.6.3] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 88 | ---- |
| 89 | |
| 90 | To import a translation from svn or the local directory select the translation file from the menu: [[br]] |
| 91 | Note: for this to work a source file must be loaded first [[br]] |
| 92 | |
| 93 | [[Image(source:/wiki/Wiki-Pictures/RU/TLE/import_file.jpg)]] [[br]] |
| 94 | |
| 95 | [[br]] |
| 96 | |
| 97 | you will then be dispalyed with this view to view the two po files along side each other: |
| 98 | |
| 99 | [[Image(source:/wiki/Wiki-Pictures/RU/TLE/import_list_view.jpg)]] [[br]] |
| 100 | |
| 101 | [[br]] |
| 102 | |
| 103 | you can then select __"Edit/ diff target - titan.po"__ to view the source and target differences. |
| 104 | |
| 105 | [[Image(source:/wiki/Wiki-Pictures/RU/TLE/diff_target.jpg)]] [[br]] |
| 106 | |
| 107 | [[br]] |
| 108 | |
| 109 | you can also automatically merge the source files to the target file by selecting __"Edit/ target.po -> target"__ |
| 110 | |
| 111 | [[br]] |
| 112 | ([#point9.6 Top of Page]) |
| 113 | [[br]] |
| 114 | |
| 115 | ---- |
| 116 | '''Edit Translation''' [=#point9.6.4] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 117 | ---- |
46 | | [[Image(source:/wiki/Wiki-Pictures/RU/TLE/edit.png)]] |
| 123 | [[Image(source:/wiki/Wiki-Pictures/RU/TLE/edit.jpg)]] |
| 124 | |
| 125 | [[br]] |
| 126 | ([#point9.6 Top of Page]) |
| 127 | [[br]] |
| 128 | |
| 129 | ---- |
| 130 | '''Submission'''[=#point9.6.5] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 131 | ---- |
| 132 | |
| 133 | If you could submit your completed translation file into the thread below for comitting by the devs into svn. |
| 134 | |
| 135 | please note that some translations may no be able to be imported into some receivers due to memory constarints. |
| 136 | |
| 137 | [http://www.aaf-digital.info/forum/showthread.php?98565-TitanNitLanguageEditor forum Link] |
| 138 | |
| 139 | [[br]] |
| 140 | ([#point9.6 Top of Page]) |
| 141 | [[br]] |
| 142 | |
| 143 | ---- |
| 144 | '''Local Testing''' [=#point9.6.6] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 145 | ---- |
| 146 | |
| 147 | If you wish to install your modified language files into your reciever for testing you can so by exporting you file an a titan.mo file you can do this by selecting __"File/ Build Titan.mo"__ for this to work you need to install some aditional components in to the program directory. |
| 148 | |
| 149 | To do this create a folder in the program directory called __"gettext"__ and extract the below files into that directory: |
| 150 | |
| 151 | |
| 152 | [http://ftp.informatik.rwth-aachen.de/ftp/pub/gnu/gettext/gettext-runtime-0.13.1.bin.woe32.zip gettext-runtime] [[br]] |
| 153 | [http://ftp.informatik.rwth-aachen.de/ftp/pub/gnu/libiconv/libiconv-1.9.1.bin.woe32.zip libiconv] [[br]] |
| 154 | [http://ftp.informatik.rwth-aachen.de/ftp/pub/gnu/gettext/gettext-tools-0.13.1.bin.woe32.zip gettext-tools] [[br]] |
| 155 | |
| 156 | Once you have exported your titan.mo file you may ftp or manually copy it onto your Receiver to test it. |
| 157 | |
| 158 | The file needs to go into the directory and a reboot neede to be proformed afterwards: '''/var/usr/local/share/titan/po/__??__/LC_MESSAGES/titan.mo)''' where __??__ is the language file you are editing. |
| 159 | |
| 160 | ''Note: if you have trouble exporting the translation to a mo file place the program directory on the root of your harddisk it can some times fail if the program it too deep in the file system'' |
| 161 | |
| 162 | [[br]] |
| 163 | ([#point9.6 Top of Page]) |
| 164 | [[br]] |
| 165 | |
| 166 | ---- |
| 167 | '''Change log''' [=#point9.6.7] ([wiki:Wiki#point0 Contents]) ([WikiStart#point0 Main page]) |
| 168 | ---- |