Page 1 of 2

Complete newbie, translation of a few terms missing?

Posted: Sun Jan 10, 2010 7:13 pm
by janaf
Hi,

I am a complete newbie to CMSMS, installed my first one a couple of hours ago. I am using the MLE. In the two additional languages I have installed (Spanish and Swedish), a couple of standard terms are not translated; breadcrumb "You are here" and page "Next Page" and "Previous Page", or they are hardcoded instead of a variable. How do I find / change / debug this?


Thanks in advance

Re: Complete newbie, translation of a few terms missing?

Posted: Sun Jan 10, 2010 9:08 pm
by reneh
they are hardcoded in your template....  see the comments there

Re: Complete newbie, translation of a few terms missing?

Posted: Sun Jan 10, 2010 9:15 pm
by janaf
Thanks, found it but no comments in the template.
So I should add a variable there and something in the text files? Some explicit advice please?!

Same thing applies for the "News" title and a few others...

Re: Complete newbie, translation of a few terms missing?

Posted: Sun Jan 10, 2010 9:23 pm
by RonnyK
Check the template again....

There is a News in the sidebar-area. That is the coded string for News.... Rename that to whatever you want.

In the relational-links area, below the {content} call, there is the prev/next set, where one has a fixed label. Without the specific label, your frontend language label from translations is used.

Check for "Relational" and you will find the position, also the comment about this is there ;)

Ronny

Re: Complete newbie, translation of a few terms missing?

Posted: Sun Jan 10, 2010 10:45 pm
by janaf
While poking around with this, (editing the template) the site went down.
Now the admin page has no template / stylesheet abd the front is completely down... >:( 

Re-installing is not a big deal but I'd like to know why / how / what can be done.....

Any ideas?

Re: Complete newbie, translation of a few terms missing?

Posted: Sun Jan 10, 2010 10:56 pm
by janaf
Things I tried that did not help.

- Clear the web cashe files
- Swap tp other (unused/unedited) templates
- Swapped to other browser
- Restart web server

The only page that looks OK is the admin login page.

Re: Complete newbie, translation of a few terms missing?

Posted: Mon Jan 11, 2010 3:00 am
by replytomk3
That depends on what you were poking into. If you poked into files, then you can overwrite the files by FTP. If it was template, you can import the template again. PM someone a link - picture is worth a thousand words. Also try selecting another template/stylesheet set for all of your pages.

Re: Complete newbie, translation of a few terms missing?

Posted: Mon Jan 11, 2010 5:59 am
by RonnyK
Where have you been changing stuff?

In Layout -> Templates? As modifications there shouldnt break the backend...
And for the translations, what did you change to the 2 mentioned lines? As those were labels, not logic, so nothing could break by doing so....

Ronny

Re: Complete newbie, translation of a few terms missing?

Posted: Mon Jan 11, 2010 11:25 am
by janaf
I was editing layout => Templates, The problem was most likely not related. I tried switching to other unused templates but that did not help. I ened up re-installing all the files on the same database table and it's OK now.

I forgot to mention before, I am a php newbie as welll, so I'd reallly appreciate some direct / explicit advice on what the changes should look like.

I can find the strings I want to change in the templates.
- what should the template changes look like? (yes total newbie  >:( )
- where do I find the translations? Which files? Are there already string variables defined for these texts or do I need to create them?

Otherwise, the multilanguage support is really brilliant and simple! I have been looking for something like this for a long time!

Re: Complete newbie, translation of a few terms missing?

Posted: Mon Jan 11, 2010 12:28 pm
by janaf
Oh, how about this;

- I add a new variable to the language file (under news)

Code: Select all

$lang['news_title']='News';
In the template I change

Code: Select all

<h2>News</h2>

Code: Select all

<?php
print ($lang['news_title']) ;
?>
But this returns nothing....

So what am I doing wrong?

Is there a tag for text variables?

Re: Complete newbie, translation of a few terms missing?

Posted: Mon Jan 11, 2010 3:52 pm
by RonnyK
News
When you change that to
Nieuws
then the head should state "Nieuws" above the entries instead of "News".... When you want non-hardcoded labels changed to another language, then you should set your frontend-language. That will show all translatable labels, as translated....

Or else, could you post a screenshot of what you see, and what label should have another language?

Ronny

Re: Complete newbie, translation of a few terms missing?

Posted: Mon Jan 11, 2010 9:28 pm
by janaf
I have a site with three languages. The content in three languages works fine, including different news in each languages, different links etc.

A test site is here; www.itsdot.com

It will move to the right domain when ready.

I was assuming I should replace the hardcoded texts with a variable, with a text value depending on the selected language. But you suggest I use a template per language instead, and change the texts in each template? Correct? I think I would prefer using one template, if that approach is feasable.

Re: Complete newbie, translation of a few terms missing?

Posted: Mon Jan 11, 2010 9:30 pm
by Dr.CSS
There is some post about using the {$lang} variable in this MLE thread...

Re: Complete newbie, translation of a few terms missing?

Posted: Tue Jan 12, 2010 4:44 pm
by janaf
Solved  ;D

I volonteer to write a 1.6.6 MLE newbie manual for cmsms-dummies if one of you oldies could double-check it?

Re: Complete newbie, translation of a few terms missing?

Posted: Tue Jan 12, 2010 4:54 pm
by RonnyK
I cant read that, as I dont do anything with MLE.... I missed that line in the original post and was answering CORE... So I pass for MLE ;)

Ronny