Difference between revisions of "Create new language files"

From BubbaWiki
Jump to navigation Jump to search
Line 13: Line 13:
If you for example wish to create a Danish version of the B3 user interface, do like this:<br>  
If you for example wish to create a Danish version of the B3 user interface, do like this:<br>  


1. Create a new folder called dk under /usr/share/album/i18n/<br>
1. Log in via SSH and become root.


2. Create a new folder called dk under /usr/share/web-admin/admin/views/default/i18n/<br>  
2. Create a new folder called dk under /usr/share/album/i18n/.<br>  


3. Copy all the files from respectively catalog to the newly created folders (/usr/share/album/i18n/en/* to /usr/share/album/i18n/dk/ and /usr/share/web-admin/admin/views/default/i18n/en/* to /usr/share/web-admin/admin/views/default/i18n/dk/)<br>  
3. Create a new folder called dk under /usr/share/web-admin/admin/views/default/i18n/.<br>  


4. Edit the file&nbsp;/usr/share/web-admin/admin/views/default/i18n/dk/description.ini:<br>  
4. Copy all the files from respectively catalog to the newly created folders (/usr/share/album/i18n/en/* to /usr/share/album/i18n/dk/ and /usr/share/web-admin/admin/views/default/i18n/en/* to /usr/share/web-admin/admin/views/default/i18n/dk/).<br>
 
5. Edit the file&nbsp;/usr/share/web-admin/admin/views/default/i18n/dk/description.ini:<br>  
<pre>short_name="dk"
<pre>short_name="dk"
long_name="Danish"
long_name="Danish"
status='user'</pre>  
status='user'</pre>  
5. Now translate the content in the five files listed above, in its new location /dk. <br>  
6. Now translate the content in the five files listed above, in its new location /dk. <br>  


6. Change the 'System language' to dk and verify the result in B3s user interface while editing.<br>  
7. Change the 'System language' to dk and verify the result in B3s user interface while editing.<br>  


When you are satisfied with the result we would be very happy if you would share it with us. Please start a thread in our forum in the category Development. Name the thread "Language files - Danish" for example. Zip the files and attach it in the thread. We will add the language files so that all users can take advantage of the translations after a software update via the user interface.<br>  
When you are satisfied with the result we would be very happy if you would share it with us. Please start a thread in our forum in the category Development. Name the thread "Language files - Danish" for example. Zip the files and attach it in the thread. We will add the language files so that all users can take advantage of the translations after a software update via the user interface.<br>  

Revision as of 10:24, 16 November 2010

Do you want to contribute and add your own language files to B3? Perfect!

Here are the English files that are relevant:

  • /usr/share/album/i18n/en/messages.js
  • /usr/share/album/i18n/en/messages.php
  • /usr/share/web-admin/admin/views/default/i18n/en/bubba_lang.php
  • /usr/share/web-admin/admin/views/default/i18n/en/help_lang.php
  • /usr/share/web-admin/admin/views/default/i18n/en/messages.js


If you for example wish to create a Danish version of the B3 user interface, do like this:

1. Log in via SSH and become root.

2. Create a new folder called dk under /usr/share/album/i18n/.

3. Create a new folder called dk under /usr/share/web-admin/admin/views/default/i18n/.

4. Copy all the files from respectively catalog to the newly created folders (/usr/share/album/i18n/en/* to /usr/share/album/i18n/dk/ and /usr/share/web-admin/admin/views/default/i18n/en/* to /usr/share/web-admin/admin/views/default/i18n/dk/).

5. Edit the file /usr/share/web-admin/admin/views/default/i18n/dk/description.ini:

short_name="dk"
long_name="Danish"
status='user'

6. Now translate the content in the five files listed above, in its new location /dk.

7. Change the 'System language' to dk and verify the result in B3s user interface while editing.

When you are satisfied with the result we would be very happy if you would share it with us. Please start a thread in our forum in the category Development. Name the thread "Language files - Danish" for example. Zip the files and attach it in the thread. We will add the language files so that all users can take advantage of the translations after a software update via the user interface.