Page 1 of 1

how to locate php file for fixing translation problems?

Posted: Sat Feb 04, 2017 6:21 am
by apmuskel
just installed swedish translation to a new 2.3.0.2 OC shop.
Some tranlations I would like to change to a better suited one and a few is missing.
Is there an easy way to browse the site with firebug or something and get the info to witch php language file I should edit?

For example the add to cart button text is to long in swedish, would like to have it just say "buy" in swedish.
Im sure someone can point me in the right direction for that specific example(and please do) ...but, if I would like to figure out for myself, is there a smart way to do this?

thx

Re: how to locate php file for fixing translation problems?

Posted: Sat Feb 04, 2017 1:08 pm
by IP_CAM
The smartest way would be, to look into the /LANGUAGE/... Subdirectories, every Section/Module/e.t.c.,
usually has it's own language file, in the USER and ADMIN Section.
Ernie
laanguage_files.jpg

Re: how to locate php file for fixing translation problems?

Posted: Sun Feb 05, 2017 7:29 am
by apmuskel
well, I am aware of that.
But in some cases(alot actually) there is no obvious dir path to go look in...not for me anyway

I was hoping someting in the source code would give you a hint
Before the php is compiled you can see the php call for the transaltion, it would be awsome to see that while browsing but I dont think I thing like that is possible on a live site right?

Guess I have to go look thru the files in the language folders but its a bit time consuming.
For instance, was looking for the "free shipping" text in the check out.. took me ages to find the php file then find the string with that translation :P

If I have had a hint for the path and string name it would be done in seconds

Re: how to locate php file for fixing translation problems?

Posted: Sun Feb 05, 2017 9:00 am
by IP_CAM
just don't make it complicated, just search for the content, then, you'll find out easy, where it is and to what it probably belongs. ;)
Ernie
free_shipping_content.jpg

Re: how to locate php file for fixing translation problems?

Posted: Wed Feb 08, 2017 6:52 am
by apmuskel
hehe guess your right, its not a big problem and I do get by just looking for the most probable location