OXID Community Forum

> International Forums > Developers > Editing lang.php does nothing
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Editing lang.php does nothing


Reply
 
Thread Tools Display Modes
#Top   #1  
Old 09-07-2009, 03:00 PM
vmajor vmajor is offline
Member
Join Date: Sep 2009
Posts: 42
vmajor is on a distinguished road
Default Updated (unofficial) English lang.php file in here

I am editing the actual lang.php in English with a view to release it to the development team for inclusion in future releases.

The current /en/lang.php is not very good.

Just a few pointers:

1. email, not eMail
2. capitalization in English is not a Random Thing - it looks Awful.

I am also correcting some grammar issues and fixing expressions so that they are actually written in business English.

However, none of the changes appear on the live testing site. I am editing everything within this path: out/new_theme/en/lang.php and the shop is set to use 'new_theme' instead of "basic, but none of the changes to the language appear even if I overwrite the /en/lang.php in 'basic'.

What may be happening? How can I get OXID to see or use the edited file? Is there another undocumented langauge file location in CE 4.1.5_21618 ?


V.

Last edited by vmajor; 09-09-2009 at 08:57 AM. Reason: typos, doh!
Reply With Quote
#Top   #2  
Old 09-07-2009, 03:27 PM
CompuSlave CompuSlave is offline
Member
Join Date: May 2009
Posts: 31
CompuSlave is on a distinguished road
Default AW: Editing lang.php does nothing

... you are sure to edit the correct file?? There are two main language files (lang.php) - one for the frontend in out/basic/your_language/lang.php and the other one in out/admin/your_language/lang.php.

After editing and uploading to the correct directory you have to empty the cache and after that you should see the changes you made!

Just give it a try! :-)
Reply With Quote
#Top   #3  
Old 09-07-2009, 05:54 PM
Marco Steinhaeuser's Avatar
Marco Steinhaeuser Marco Steinhaeuser is online now
Community Guide @ OXID
Join Date: Oct 2008
Posts: 9,618
Marco Steinhaeuser is on a distinguished road
Default AW: Editing lang.php does nothing

Quote:
I am editing the actual lang.php in English with a view to release it to the development team for inclusion in future releases.
Thanks god, m8! :-)

Hope you get it working. Otherwise turn back here.

Cheers
__________________
Marco
http://about.me/marco.steinhaeuser

Will ignore unsolicited support requests via PM, email or IM.
Reply With Quote
#Top   #4  
Old 09-07-2009, 06:13 PM
vmajor vmajor is offline
Member
Join Date: Sep 2009
Posts: 42
vmajor is on a distinguished road
Default Re: Editing lang.php does nothing

...no...still nothing...

I turned off the proxy, flushed the browser cache and I still see the original EN lang.php.

Can you tell me if you see the following text here:
Quote:
Variant Selection of 2010 Velocite Isoflow
http://newshop.cycletaiwan.com/Frame...e-Isoflow.html

This is our test playground. I am also hacking apart the basic template so there are some elements missing.

Cheers,

V.
Reply With Quote
#Top   #5  
Old 09-07-2009, 06:16 PM
tomas liubinas tomas liubinas is offline
Junior Member
Join Date: Oct 2008
Posts: 26
tomas liubinas is on a distinguished road
Default Re: Editing lang.php does nothing

A quick tip: lang files are cached so you have to clean tmp dir after editing them
Reply With Quote
#Top   #6  
Old 09-08-2009, 04:06 AM
vmajor vmajor is offline
Member
Join Date: Sep 2009
Posts: 42
vmajor is on a distinguished road
Default Re: Editing lang.php does nothing

Thank you Thomas!

That was it.

However, my en/lang.php file has an error. I am trying to track it down and fix it, but help would be appreciated.

Quote:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/*****/public_html/newshop/out/new_theme/en/lang.php on line 1056
Attached is the new en/lang.php file - I tried to quote it, but the forum tells me it is 9 times longer than allowed. It is about 50% corrected - this is not a final revision, so even without the error, it is not ready to be used. I just need it to work so that I can see how the changes integrate with the OXID system, before I make any more changes.

Thank you.

V.
Attached Files
File Type: zip lang.zip (19.2 KB, 4 views)
Reply With Quote
#Top   #7  
Old 09-08-2009, 04:27 AM
vmajor vmajor is offline
Member
Join Date: Sep 2009
Posts: 42
vmajor is on a distinguished road
Default Re: Editing lang.php does nothing

Fixed :-)

I'll make the final en/lang.php file available here. Please keep in mind that some changes are specific to our needs, but everything should be in proper business English.

I think this will increase the appeal of OXID to international or English language based customers and end users.

V.
Reply With Quote
#Top   #8  
Old 09-08-2009, 11:33 AM
Marco Steinhaeuser's Avatar
Marco Steinhaeuser Marco Steinhaeuser is online now
Community Guide @ OXID
Join Date: Oct 2008
Posts: 9,618
Marco Steinhaeuser is on a distinguished road
Default AW: Editing lang.php does nothing

Sorry, I could have told you that cache = /tmp/...

Quote:
I think this will increase the appeal of OXID to international or English language based customers and end users.
Definately. Thanks alot for that!

Cheers
__________________
Marco
http://about.me/marco.steinhaeuser

Will ignore unsolicited support requests via PM, email or IM.
Reply With Quote
#Top   #9  
Old 09-08-2009, 12:38 PM
vmajor vmajor is offline
Member
Join Date: Sep 2009
Posts: 42
vmajor is on a distinguished road
Default Re: Editing lang.php does nothing

Ok, here is the first "release" version of the updated en/lang.php file.

It should be mostly correct.

I fixed spelling and capitalization issues to give the store ( ) a more professional feel. I also fixed up some sentences so they are more correct.

Lastly, and this is where it may not work out for everyone, I changed some phrases to improve the flow of the interface.

At the very least, this en/lang.php version may provide a better starting point for further customisation or translation work.

Enjoy!

V.
Attached Files
File Type: zip lang.zip (19.0 KB, 6 views)
Reply With Quote
#Top   #10  
Old 09-08-2009, 02:31 PM
Marco Steinhaeuser's Avatar
Marco Steinhaeuser Marco Steinhaeuser is online now
Community Guide @ OXID
Join Date: Oct 2008
Posts: 9,618
Marco Steinhaeuser is on a distinguished road
Default AW: Editing lang.php does nothing

Thanks alot for that, buddy - mate
__________________
Marco
http://about.me/marco.steinhaeuser

Will ignore unsolicited support requests via PM, email or IM.
Reply With Quote
Reply

Bookmarks

Tags
editing, langphp

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Contents of Invoice PDF euroblaze Templates and Design 1 06-11-2010 04:11 PM
Kategoriename zu lang Loetzi Templates und Design 5 01-12-2010 12:35 PM
Artikelbezeichnung zu lang derolli Newbies 2 09-15-2009 12:31 PM
Problem creating/editing shipping methods Bennerl Installation and configuration 2 01-30-2009 08:19 AM
lang.php danillo Installation und Konfiguration 4 12-11-2008 04:24 PM

All times are GMT +2. The time now is 04:41 AM.