Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:entwickler:uebersetzen [2020/09/14 16:39] – [Translate] fasseen:entwickler:uebersetzen [2023/07/16 10:51] (current) fasse
Line 1: Line 1:
 ====== Translation ====== ====== Translation ======
-With version 2.2 we have separated all language texts of the code and added in separate XML file. Thus a translation become relatively easy and we look forward to any other language in which we can offer Admidio. Since version 3.1 we have changed the format of the translation files to **Android String Resource** and use the service of [[https://www.transifex.com|Transifex]] to perform the translations.+Admidio use separated language texts within the code that are added in separate XML files. Thus a translation become relatively easy and we look forward to any other language in which we can offer Admidio. Within the translation files we use the xml format of **Android String Resource**. Our translation files are available at [[https://www.transifex.com|Transifex]] and you can use that platform to perform the translationAfter you are done, we import the translated files from Transifex to the Admidio source code. 
 + 
 +===== Add new language =====
  
 ==== First steps ==== ==== First steps ====
Line 16: Line 18:
 ==== Use your language within Admidio ==== ==== Use your language within Admidio ====
 If you want to see your work in Admidio you must download your translated strings from [[http://www.transifex.com|Transifex]] and copy this file to the Admidio folder **adm_program/languages**. If you want to see your work in Admidio you must download your translated strings from [[http://www.transifex.com|Transifex]] and copy this file to the Admidio folder **adm_program/languages**.
-Now you must introduce the new language to Admidio so that it will be shown in the language select box. Therefore you must add the ISO code and the name of the language to the XML file **languages.xml** in the folder **adm_program/languages**. The name of the language should not be translated, it should be the native name.+Now you must introduce the new language to Admidio so that it will be shown in the language select box. 
  
-The following XML snippet must be adapted and another **<language>** tag should be appended to the file. +Therefore you must add the ISO code and the name of the language to the php file **languages.php** in the folder **adm_program/languages**. The name of the language should be a combination of the english word and the name of the language in the language itself. 
-<code xml><language+ 
-    <isocode>en</isocode> +The following PHP snippet must be adapted and should be add to the beginning of the array list in the file just after **$gSupportedLanguages = array(** 
-    <name>english</name+<code php   'de'    =array( 
-</language></code>+        'name'    ='German - Deutsch (du)', 
 +        'isocode' ='de', 
 +        'libs'    ='de' 
 +    ),</code>
  
 :!: Please note that the ISO code must be the same as the name of your xml file. E.g. if your downloaded XML file has the name //xy.xml// than your ISO code is //xy//. :!: Please note that the ISO code must be the same as the name of your xml file. E.g. if your downloaded XML file has the name //xy.xml// than your ISO code is //xy//.
Line 30: Line 35:
 ==== Last step ==== ==== Last step ====
 Now translate all necessary texts and then [[m.fassbender@admidio.org|send us]] an email that the language is ready for delivery. We integrate the file in our source code and your translation will then be included in the next Admidio release. Now translate all necessary texts and then [[m.fassbender@admidio.org|send us]] an email that the language is ready for delivery. We integrate the file in our source code and your translation will then be included in the next Admidio release.
 +
 +===== Improve existing language =====
 +
 +If you want to improve an existing language of Admidio please [[m.fassbender@admidio.org|contact]] us first. At the same time you can register yourself at [[http://www.transifex.com|Transifex]] and join the [[https://www.transifex.com/admidio/admidio/dashboard/|Admidio Project]]. We will than give you the necessary rights to edit translations in your favorite language at Transifex. After that you are ready to start with the improvements to your language.
  • en/entwickler/uebersetzen.1600094369.txt.gz
  • Last modified: 2020/09/14 16:39
  • by fasse