Request #4822

Gender support to locales - translations

Added by Carlos Cesario almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:09/24/2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Sunstone
Target version:-
Pull request:

Description

Hi folks,
Is there any way to change or specify the gender of a string to be translated?
I'm asking it because in my case using PT_br locale I 'm facing a bit problem with some strings.

By example string 'All'
https://github.com/OpenNebula/one/blob/master/src/sunstone/public/app/tabs/acls-tab/form-panels/create.js#L304

In case of Zone context the correct translation will be 'Todas' (female)

But there other 'All' strings that need to be translated to 'Todos' (male) by example when make reference to Hosts

Or is there any way to diference the string translation... any param to the function locale.tr ...!?

Best regards,

Carlos


Related issues

Duplicates Backlog #4213: Support better translations with gettext New 11/26/2015

History

#1 Updated by Carlos Martín almost 5 years ago

  • Status changed from Pending to Closed

Hi,

You are right, the translations could be improved in this regard. But it will require a big effort and I'm not sure if this will be addressed in the short-term.

I'm closing this ticket to merge it with #4213. Your request looks like it could be fixed with gettext style contexts.

#2 Updated by Carlos Martín almost 5 years ago

  • Duplicates Backlog #4213: Support better translations with gettext added

#3 Updated by Carlos Cesario almost 5 years ago

Hi Carlos

Thank you by your feedback!!!
what do you think to this pull request, while this request are not implemented.!?

https://github.com/OpenNebula/one/pull/115

Best regards,

-Carlos

#4 Updated by Carlos Cesario almost 5 years ago

Carlos Cesario wrote:

Hi Carlos

Thank you by your feedback!!!
what do you think to this pull request, while this request are not implemented.!?

https://github.com/OpenNebula/one/pull/115
https://github.com/OpenNebula/one/pull/116
https://github.com/OpenNebula/one/pull/117

Could you merge it!? pls

Best regards,

-Carlos

#5 Updated by Carlos Martín almost 5 years ago

Hi,

We'll consider them for the next version. For 5.2 it's too close to the release, as those changes can leave untranslated strings that are currently translated.

#6 Updated by Carlos Cesario almost 5 years ago

Hi Carlos,

I agree with you, but according https://www.transifex.com/opennebula/one/dashboard/ we have only 3 languages 100% translated, I believe that 8 strings changed will be translated so fast by team.

Like this patch that added new strings and it was translated so fast :) http://dev.opennebula.org/issues/3045

But, anyway thank you by your feedback !

-Carlos

Also available in: Atom PDF