Difference between revisions of "Create new language files"

From BubbaWiki
Jump to navigation Jump to search
Line 3: Line 3:
Here are the English files that are relevant:<br>  
Here are the English files that are relevant:<br>  


*album/en/messages.js<br>  
*/usr/share/album/i18n/en/messages.js<br>  
*album/en/messages.php<br>  
*/usr/share/album/i18n/en/messages.php<br>  
*frontend/en/bubba_lang.php<br>  
*/usr/share/web-admin/admin/views/default/i18n/en/bubba_lang.php<br>  
*frontend/en/help_lang.php<br>  
*/usr/share/web-admin/admin/views/default/i18n/en/help_lang.php<br>  
*frontend/en/messages.js<br>
*/usr/share/web-admin/admin/views/default/i18n/en/messages.js<br>


<br>  
<br>  

Revision as of 10:08, 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 whish to create a Danish version of the B3 user interface, do like this:

1. Create a new folder called dk under album/

2. Create a new folder called dk under frontend/

3. Copy all the files from respectively catalog to the newly created folders (album/en/* to album/dk/ and frontend/en/* to frontend/dk/)

4. Edit the file frontend/dk/description.ini:

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

5. Now translate the content in the five files listed above. Verify the result in B3s user interface.

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.