Currently Phoce Gallery is only translated to Brazillian Portuguese (furthermore I think it an older version) and I'd like to translate it to European Portuguese.
Can anyone tell me how can I do it?
Best regards,
Daniel Sousa
European Portuguese Translation
-
daniel.sousa.me
- Phoca Newbie

- Posts: 1
- Joined: 18 Aug 2013, 12:29
- Benno
- Phoca Hero

- Posts: 9967
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: European Portuguese Translation
Hi,
1. ) Download Phoca Gallery Component.
http://joomlacode.org/gf/download/frsre ... v4.0.2.zip
2.) Unzip it.
3.) find the language\en-GB folder
inside this folder you will find two files:
en-GB.com_phocagallery.ini
en-GB.com_phocagallery.sys.ini
4.) open this files with an editor like e.g. notepad++ is.
translate every string like this example for en-GB.com_phocagallery.ini:
Important: Don't change anything left from =
Also important: The double quotes at the beginning and at the end of the translation of each string.
Translate all strings of the file!!
Do the same with en-GB.com_phocagallery.sys.ini
5.) Rename the translated files to:
pt-PT.com_phocagallery.ini
pt-PT.com_phocagallery.sys.ini
6.) Create a XML install file:
Save this file as:
pt-PT.com_phocagallery.xml
(UTF-8 without BOM)
7.) zip all 3 files to a zip package and name it:
pt-PT.com_phocagallery-j25-j3.zip
because this language package will work with Joomla! 1.6, 1,7, 2.5 & 3.x
Kind regards,
Benno
1. ) Download Phoca Gallery Component.
http://joomlacode.org/gf/download/frsre ... v4.0.2.zip
2.) Unzip it.
3.) find the language\en-GB folder
inside this folder you will find two files:
en-GB.com_phocagallery.ini
en-GB.com_phocagallery.sys.ini
4.) open this files with an editor like e.g. notepad++ is.
translate every string like this example for en-GB.com_phocagallery.ini:
Code: Select all
COM_PHOCAGALLERY_FIELD_OVERLIB_ATTRIBUTES_LABEL="Overlib Attributes" (translate to your language)
COM_PHOCAGALLERY_FIELD_OVERLIB_ATTRIBUTES_DESC="Set Overlib attributes. Pay attention to correct formatting of the string." (translate to your language)
[...]
[...]
[...]
COM_PHOCAGALLERY_YOUR_MAIN_CATEGORY_IS_UNPUBLISHED="Your main category is unpublished" (translate to your language)
COM_PHOCAGALLERY_ENLARGE_IMAGE="Enlarge Image" (translate to your language)
Also important: The double quotes at the beginning and at the end of the translation of each string.
Translate all strings of the file!!
Do the same with en-GB.com_phocagallery.sys.ini
5.) Rename the translated files to:
pt-PT.com_phocagallery.ini
pt-PT.com_phocagallery.sys.ini
6.) Create a XML install file:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="file" method="upgrade" version="3.0">
<name></name>
<version>4.0.2</version>
<creationDate></creationDate>
<author></author>
<authorUrl></authorUrl>
<license>GNU/GPL version 2</license>
<fileset>
<files target="language/pt-PT">
<filename>pt-PT.com_phocagallery.ini</filename>
<filename>pt-PT.com_phocagallery.sys.ini</filename>
</files>
<files target="administrator/language/pt-PT">
<filename>pt-PT.com_phocagallery.ini</filename>
<filename>pt-PT.com_phocagallery.sys.ini</filename>
</files>
</fileset>
</extension>
pt-PT.com_phocagallery.xml
(UTF-8 without BOM)
7.) zip all 3 files to a zip package and name it:
pt-PT.com_phocagallery-j25-j3.zip
because this language package will work with Joomla! 1.6, 1,7, 2.5 & 3.x
Kind regards,
Benno