Catalan translation - Updated // Question

Translations - translations for Phoca extensions
Nessa
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 14 Dec 2009, 00:14

Catalan translation - Updated // Question

Post by Nessa »

Hi,
I have added some things in the catalan translation for phoca gallery component made by el_libre.
I don't know how it works, so I just write here them:

file: ca-ES.com_phocagallery

ONLY REGISTERED AND LOGGED IN USER CAN RATE THIS IMAGE=Només usuaris registrats poden votar aquesta imatge
RATING=Valoració
YOU HAVE ALREADY RATED THIS IMAGE=Ja has votat aquesta imatge
PHOCA GALLERY IMAGE RATED=Imatge votada
CHARACTERS WRITTEN=Caràcters escrits
AND LEFT FOR DESCRIPTION=Caràcters per a escriure
MAX SIZE=Mida màx.
MAX RESOLUTION=Resolució màx.


And I have one question, how can I translate the word votes circled in this image (it's the detail view)?

Image

That's all, and thanks you for this component ^^.

Nessa
Nessa
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 14 Dec 2009, 00:14

Re: Catalan translation - Updated // Question

Post by Nessa »

I have already translated votes, changing a bit the file components\com_phocagallery\views\detail\tmpl\default_rating, line 25:

Original:

Code: Select all

echo '<strong>' . JText::_('Rating'). '</strong>: ' . $this->tmpl['votesaverageimg'] .' / '.$this->tmpl['votescountimg'] . ' ' . JText::_($this->tmpl['votestextimg']). '&nbsp;&nbsp;';

Code: Select all

echo '<strong>' . JText::_('Rating'). '</strong>: ' . $this->tmpl['votesaverageimg'] .' / '.$this->tmpl['votescountimg'] . '&nbsp;' . JText::_('votes'). '&nbsp;&nbsp;';
And then adding to the translation file:
VOTES=vots

It might not be the best way to translate it...changing the code :idea:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Catalan translation - Updated // Question

Post by Jan »

Hi, you need not to change the string:

it can get two values:

vote, votes

$tmpl['votestextimg'] = 'votes';
$tmpl['votestextimg'] = 'vote';

So you just change the language string:

VOTES=votes
VOTE=vote

Jan
If you find Phoca extensions useful, please support the project
Nessa
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 14 Dec 2009, 00:14

Re: Catalan translation - Updated // Question

Post by Nessa »

Hi,

Now that I know this, is very simple to translate it... :oops:

In catalan is:
VOTES=vots
VOTE=vot


nessa
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Catalan translation - Updated // Question

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
gonzalocalle
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Feb 2010, 18:55

Re: Catalan translation - Updated // Question

Post by gonzalocalle »

Hi, Jan>
I need to translate into spanish all rating messages. That is
ONLY REGISTERED AND LOGGED IN USER CAN RATE THIS IMAGE
RATING=
YOU HAVE ALREADY RATED THIS IMAGE=
PHOCA GALLERY IMAGE RATED=
CHARACTERS WRITTEN=
AND LEFT FOR DESCRIPTION=
MAX SIZE=
MAX RESOLUTION=

I have uploaded a Spanish extension but it only works for front page and forms.
Where and how do I have to make the changes?
Thanks
gonzalocalle
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Feb 2010, 18:55

Re: Catalan translation - Updated // Question

Post by gonzalocalle »

Hi,
I found it in defalut rating
but I can not find where is the> Thanks for voting!!
Thanks
gonzalocalle
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Feb 2010, 18:55

Re: Catalan translation - Updated // Question

Post by gonzalocalle »

Hi, Jan
Well, need to translate into spanish also Upload form
Upload File [ Maximum Size: 3.00 MB, Maximum Resolution: 3072 x 2304 px ]
Filename:
Image Title:
Description:

Please, can you tell me Where and how to do it_?
Can we add some field to this form_? Where and how?
Thansk, by the way, great component.
Gonzalo
gonzalocalle
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Feb 2010, 18:55

Re: Catalan translation - Updated // Question

Post by gonzalocalle »

H/+i+, /J/an
Another isue
In the Upload form
I found that Image description may be limited in characters but there is no limit in Image Title.
if someone enters an Image title very long it goes beyond the frame.
How can I limit characters on Image Title?

Thanks
Gonzalo
gonzalocalle
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Feb 2010, 18:55

Re: Catalan translation - Updated // Question

Post by gonzalocalle »

HI, JAN
SOLVED I DOWLOADED THE SPANISH PACKAGE.!!
my only problem is to identify the uploader in my categories.
regards
gonzal
Post Reply