MODx 0.9.5 European Portuguese (pt-pt) translation. All files with
Western-European (ISO) - iso-8859-1 encoding
Includes translations for:
- Manager interface and country list
- Ditto snippet
- Eform snippet
- QuickEdit module
- DocManager module
[li]TinyMCE plugin (includes Official Moxiecode TinyMCE Portuguese translation)
INSTALLATION:
Unzip and upload to your MODx Base dir.
Tested on MODx 0.9.5 rev 2106
It’s my christmas present to the MODx community
Enjoy!
JP
EDIT: updated file to include some minor fixes, mostly to support Ditto 1.0.2 and eForm 1.4.2
EDIT 2: I’d appreciate if people test these files and give me feedback to improve this. I’d like to have this included in the MODx package - PT is a popular language where I work and that would raise significantly MODx’s profile as a viable tool. To the dev team: do you have already a date for the "All-language" MODx distribution?
Note 1: As I was translating the Countries list, I noticed some inconsistencies (Some non-independent territories are listed, while others are not), made me think maybe
we should stick to a sort of internationally accepted standard countries list (don’t know where to find one though...). Also, as the countries name’s can change between languages, it would be great if the
countries could be sorted in the combo boxes (and other site listings). For instance, Germany is Alemanha in portuguese. Doesn’t make sense for it to appear next to Ghana!! Don’t know how to change this though...
Note 2: For the TinyMCE Portuguese translation to work, you must upload all files to your server and change the Plugin (inside the manager, not the tpl file!!) as follows:
SOLUTION 1:
Add the following 3 lines:
case "portuguese":
$returnlang = "pt";
break;
Before these two, inside the function [tt]getTinyMCELang($lang)[/tt]:
default:
$returnlang = "en";
-----------------------------------
SOLUTION 2:
Apparently solution 1 does not work as of MODx 0.9.5 rev 2106 (the [tt]$tinymce_language handle[/tt] doesn’t seem to work), so you will have to hardcode the language in the following line (Just replace the sting [tt]{$tinymce_language}[/tt] with "pt" (no quotes):
external_link_list_url : "{$base_url}assets/plugins/tinymce/modxLinkList.php",
remove_script_host : {$remove_script_host},
language : "pt", //< --- LINE TO CHANGE
This is a temporary solution (works perfectly for me!) - in future versions of MODx and the TinyMCE plugin solution 1 should work!
-----------------------------------
Tested with MODx 0.9.5 rev 2106 and TinyMCE 2.0.8
EDIT3: removed the old file since there’s a newer version in the full Portuguese Language Pack - see this thread for the updated version