Jump to content


Photo
- - - - -

Again Trouble With Translation In Pl 2.3.8


Best Answer Rob , 18 March 2013 - 10:31 PM

Peter,

 

Right.  You want to use the PageLines Customize plugin and create a language folder there via FTP.  You can then apply your .po/.mo files there. That's the appropriate place for them.

 

No, you cannot use a language folder in the child theme. The PageLines Customize Plugin places no burden on resources. It will not cause any delays or reduce the speed of your site.  All it's doing is providing a receptacle for things like customized site-wide functions, languages, etc. It doesn't process anything unless called upon, thus has no load time.

Go to the full post


  • Please log in to reply
17 replies to this topic

#1 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 18 December 2012 - 05:53 PM

sorry that i have to come up with the same thing over and over.

 

but it happens to be that every new version of PL has problems with the translation...

in pagelines 2.3.8 the mo/po files from

Please Login or Register to see this Hidden Content

are not working for the PL backend (placed in: pagelines/language).

Moreover the "Edit" link is translated in the po file (as you can see in the attached screenshot from poedit) - but seems to be untranslated in the frontend.

 

i know its hard to fit all needs for all those languages but now its realy getting on my nervs - because in every project i work hours to find solutions for the same little problem. at least i'm picking up the php file and change the term "Edit" or "Search" into german - but that can't be the solution for a pro framework!?

 

please, any solutions???

greetings, peter

 

 

 

 

 

Attached Files



#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 18 December 2012 - 09:09 PM

Peter,

 

Can you attach your po/mo files?  Which language are you using? 

 

I'll have our senior developer take a look at them to see if he can find any irregularities.

 

To upload, just click the "More Reply Options" button below, while writing your reply.



#3 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 19 December 2012 - 08:52 AM

it's german language from the

Please Login or Register to see this Hidden Content

.

but i can't upload mo/po files with "Attach Files" in this forum - filetype not allowed: "You aren't permitted to upload this kind of file".

actually i use exactly those two files as mentioned abow.

 



#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 20 December 2012 - 03:30 AM

You dont have to host any files here, there are 100's of thousands of free file hosts 

Please Login or Register to see this Hidden Content



#5 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 20 December 2012 - 09:42 AM

@ Simon_P: thanks for the hint, but Rob said:

"To upload, just click the "More Reply Options" button below, while writing your reply."

in other words - its not possible to upload mo and po files in the forum.

Please Login or Register to see this Hidden Content



#6 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 20 December 2012 - 05:58 PM

Your translation files work fine, you just forgot to rename them.

 

If the lang is set to de_DE in wp-config then the mo file HAS to be de_DE.mo



#7 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 20 December 2012 - 07:17 PM

thanks simon, but: 

wp-config language is set to de_DE

the language files are renamed to de_DE.mo and de_DE.po

language files are placed in: pagelines/language

as you can see in the attached screenshot (from PoEdit) in my first post above - the term "Edit" is translated.

 

in the last version of PL the translation worked well in the backend - but on the front the "edit" link was still in EN

because there was no solution in the forum for that problem i changed the term manualy in the PageLines php file from "edit" to german "bearbeiten".

 

in the latest new PL Version the translation files are not working for the backend and still the term "Edit" seems to be untranslatable.

 

would be nice to find a solution - or do we have do edit the php files in every new PL version manualy???



#8 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 20 December 2012 - 07:21 PM

I renamed the 2 files you attached, changed the mo to de_DE.mo, put it in the customize dir, set my lang to de_DE in wp-config.php

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content



#9 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 21 December 2012 - 11:20 AM

sorry, but something must be wrong here

i took some screenshots to show the settings

i'm using the same translation files

 

ftp folder with mo po files: -- is this the right folder??? you are using the customize folder within a plugin! that could cause the problem. is it necessary to use the pl customiziation plugin? EDIT: i just installed the customization plugin but that changed nothing!

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content

  25.84KB   10 downloads

pagelines backend in english - some german phrases "Bild hochladen" (with german trans. files)

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content

  52.98KB   15 downloads

wp-config wplang settings:

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content

  14.36KB   13 downloads

 

greetings and have a nice christmas time!



#10 Danny

Danny

    Is Awesome!

  • Moderators
  • 17124 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 21 December 2012 - 01:01 PM

Please bear in mind that I can only read and write in one language and therefore, I have never attempted to use any other language in Wordpress.

 

However, Installing the language files as far as I am aware, should only be placed in either the child theme or customize plugin, so that upon an update your language files are not removed.



#11 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 14 March 2013 - 05:40 PM

i made a collection of terms that i can not translate from pagelines:

 

File:            class.post.php
Line:             263  "Tagged with" and 425 "Link To" and 669 "No results for"

 

File:            class.objects.php
Line:             158  "Edit"

 

File:            library.templates.php
Line:            632     "Next Entries"  "Prev Entries"

 

 

Path:          sections/postinfo/
File:            section.php
Line:           27    "Search results for" an 29 "Currently viewing the category:" and 31 "Currently viewing the tag:"


 

sorry that i have to come up with the same stuff over and over but to tell you the truth - its getting on my nervs and its a lot of time to deal with this untranslatable terms, so i really would appreciate a working solution for that problem. 

 

by the way i always use a child theme for development and have the latest framework version.



#12 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 14 March 2013 - 06:22 PM

Again we dont monitor all old topics, we BEG people to open new topics.

But to answer your question, i downloaded the latest po file from the translation center...

#: includes/class.posts.php:263
msgid "<span class='note'>Tagged with &rarr;</span> "
msgstr "<span class='note'>Gelabeld met &rarr;</span>"

#: includes/library.templates.php:632
msgid "&larr; Previous Entries"
msgstr "&larr; Eerdere berichten"

#: includes/library.templates.php:635
msgid "Next Entries &rarr;"
msgstr "Volgende berichten &larr;"

#: sections/postsinfo/section.php:27
msgid "Search results for"
msgstr "Zoekresultaten voor"

#: sections/postsinfo/section.php:29
msgid "Currently viewing the category:"
msgstr "U bekijkt momenteel de categorie:"

#: sections/postsinfo/section.php:31
msgid "Currently viewing the tag:"
msgstr "U bekijkt momenteel de tag:"

 

Not sure what class.objects.php is.



#13 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 14 March 2013 - 06:53 PM

Hi Simon, that pretty language is Dutch ;) i would use it - because it sounds good - but people in germany are like british people - they speak first of all the common language :)

 

i asume you are using the customize plugin? or the pagelines language folder?

i use the pagelines language folder, because i customize via child theme.

can i use the customize plugin additionaly to the child theme  - just for the DE language files - or will they overwrite the child theme settings?

 

*  class.objects.php =

Please Login or Register to see this Hidden Content



#14 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 14 March 2013 - 07:49 PM

#: includes/class.objects.php:158
msgid "edit"
msgstr "wijzigen"
 
Im not sure what you mean by overwrite child theme settings.
 
The framework will use either: the main framework language dir OR pagelines-customize/language/


#15 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 14 March 2013 - 08:35 PM

so it makes no difference whether i'm using pagelines-customize/language/ or the main framework language folder?



#16 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 16 March 2013 - 03:22 PM

I believe that if you replace files in the main language folder of PageLines, instead of a child theme or PageLines Customize, there's a high probability your changed files will be overwritten with the next PageLines update.  I'd recommend the Customize plugin or a child theme to avoid the risk of overwrite.



#17 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 18 March 2013 - 04:19 PM

hi Rob, i always use Child themes - but as far as i know its not possible to use the language folder inside the child theme - right?

I was wondering whether i could use language folder inside child theme or not????

it would be great to have the ability to use the language folder inside of a child theme...

that would be good because using less plugins saves resources.

greetings peter



#18 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 18 March 2013 - 10:31 PM   Best Answer

Peter,

 

Right.  You want to use the PageLines Customize plugin and create a language folder there via FTP.  You can then apply your .po/.mo files there. That's the appropriate place for them.

 

No, you cannot use a language folder in the child theme. The PageLines Customize Plugin places no burden on resources. It will not cause any delays or reduce the speed of your site.  All it's doing is providing a receptacle for things like customized site-wide functions, languages, etc. It doesn't process anything unless called upon, thus has no load time.


  • basmati likes this