Complete newbie, translation of a few terms missing?

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

Complete newbie, translation of a few terms missing?

Post 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
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm
Location: Norway

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

Post by reneh »

they are hardcoded in your template....  see the comments there
ReneH 8-)
A search will save you hours waiting for an answer! Image
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

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

Post 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...
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

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

Post 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
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

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

Post 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?
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

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

Post 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.
replytomk3

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

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

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

Post 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
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

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

Post 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!
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

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

Post 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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

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

Post 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
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

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

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post by Dr.CSS »

There is some post about using the {$lang} variable in this MLE thread...
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

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

Post 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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

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

Post 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
Locked

Return to “[locked] CMSMS MLE fork”