Feature #1004

Internationalization support

Added by VIVOSS company over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:11/24/2011
Priority:NormalDue date:
Assignee:Hector Sanjuan% Done:

0%

Category:Sunstone
Target version:Release 3.2
Resolution:fixed Pull request:

Description

Our company tries to use OpenNebula. It turns out to be a very useful and convenient product but our specific requirement is localized user interface.

We are glad to share our internationalization means for the OpenNebula 3.0 release with Russian locale in the attached patch.

We think it's a good idea for you to consider a possibility of implementing multi-language support. It should be useful for growing the popularity and utilization of OpenNebula.
We are also ready to collaborate in improvement of internationalization if there is a necessity.

Additional parameter for sunstone-server.conf:
:lang: ru

If this parameter is absent, the default English locale will be used.

Best regards,
R. Sokolov,
"ZAO VIVOSS i OI".

i18n.patch Magnifier (202 KB) VIVOSS company, 11/24/2011 08:52 AM

Associated revisions

Revision 4036e5d1
Added by Hector Sanjuan over 9 years ago

Feature #1004: Add internationalization support for Sunstone

This commit enables internationalization support for the Sunstone interface.

Language is chosen according to the variable LANG in user's template. This variable is automaticly set when users chooses a new language from the select field on top, so that it is preserved on future logins.

If no LANG is set, language is chosen according to the :lang: variable of the configuration. Otherwise it defaults to English.

Special thanks to ZAO VIVOSS i OI for contributing the initial patch for OpenNebula Sunstone 3.0 and the first translation: russian. The contents from this patch have been partially applied with the necessary corrections and improvements to the master branch, which was ahead on many aspects to the 3.0 release.

Revision 7cfd3d53
Added by Hector Sanjuan over 9 years ago

Feature #1004: Improve translation support

This commit sets all 'tr' calls in the same form, so they can be easily matched and grep-ed. This way, a small script (generate_translation_template.rb) allows the automatic generation of the template translation, containing all the strings that can be translatable from the application. This script is not installed.

An empty default en_US generated translation has been added, which can be also used as templates for new translations.

Documentation, community, support, sign out, welcome, strings from the main view are now translated as well.

Revision d6631472
Added by Hector Sanjuan over 9 years ago

Feature #1004: Fix ru translation (duplicated contents in file)

Reapplying the original patch caused duplicated contents for this file. datatable_ru.txt was fixed already before.

Revision b9b36fff
Added by Hector Sanjuan over 9 years ago

Feature #1004: Do not replace template when updating. Replace only the LANG value.

Revision 3a00d1d4
Added by Hector Sanjuan over 9 years ago

Feature #1004: Improvements in translation script and translation template generation.

Revision 651f0770
Added by Hector Sanjuan over 9 years ago

Feature #1004: Small fixes with licenses and translation template generation

Revision 2b9adba4
Added by Hector Sanjuan over 9 years ago

Feature #1004: Add configuration tab to sunstone.

Language can be set in configuration tab.

Revision d80e5ef8
Added by Hector Sanjuan over 9 years ago

Feature #1004: Update default translation file

Revision ae986cac
Added by Hector Sanjuan over 9 years ago

feature #1004: Upgrade russian translation and add upgrade script

History

#1 Updated by Hector Sanjuan over 9 years ago

  • Category set to Sunstone
  • Status changed from New to Assigned
  • Assignee set to Hector Sanjuan
  • Target version set to Release 3.2 - Beta1

Hello!

This is a magnific contribution. We had already discussed about offering this kind of multi-language support. I will apply the patch to latest master, do some checks and necessary updates so we can have it for the next release, in Sunstone at least (oZones could as well benefit).

So, thank you very much!

#2 Updated by Ruben S. Montero over 9 years ago

  • Target version changed from Release 3.2 - Beta1 to Release 3.2

#3 Updated by Ruben S. Montero over 9 years ago

  • Target version changed from Release 3.2 to Release 3.2 - Beta1

#4 Updated by Ruben S. Montero over 9 years ago

  • Target version changed from Release 3.2 - Beta1 to Release 3.2

#5 Updated by Ruben S. Montero over 9 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

This is now merged. We'll make a process to contribute new translations. THANKS AGAIN for this wonderful contribution!

Also available in: Atom PDF