balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

brazilian portuguese #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello there, great plugin... is there a way to replace pt-PT from Portugal
to pt-BR from Brasil ? Many thanks!

Original issue reported on code.google.com by mar251@gmail.com on 12 Oct 2009 at 6:05

GoogleCodeExporter commented 9 years ago
Hi, since "pt-BR" is not (yet?) supported you can only translate to pt-PT: 
http://code.google.com/apis/ajaxlanguage/documentation/reference.html#LangNameAr
ray

What you can do is to create an "alias" for pt-PT:

$.translate.languageCodeMap["pt-br"] = "pt-PT";

so if you write .translate("pt-BR") then the plugin will actually translate to 
"pt-PT".
But if Google adds support for "pt-BR" in the future then it won't be converted 
to "pt-
PT" any longer.

Note that this feature was added in v1.4.0, which currently can be downloaded 
only from 
here: http://jquery-translate.appspot.com/

Original comment by balazs.endresz on 12 Oct 2009 at 8:03

GoogleCodeExporter commented 9 years ago

Original comment by balazs.endresz on 18 Oct 2009 at 8:07