Answer the question
In order to leave comments, you need to log in
Editor for php language files of type array?
Let's say there is a file
$lang = array (
'title1' => "титл 1",
'title2' => "титл 2"
)
Answer the question
In order to leave comments, you need to log in
Developing the theme of converting:
You can write a simple script in the same php that converts such a file to any convenient format and vice versa. For example, convert to CSV and translate with Excel.
csv, xml, json, ... - the format for storing source texts can be different ,
and then I agree with Riateche - write a simple script
if you are too lazy, then you can make it into a table in MySql and then export it to a php array and manually modify it ... but this is completely already way perverted
for such tasks there is no specialized software
I wrote my own script, it was in PHP + JS + HTML
A page with a form of the label + input type is formed from the array. The label is the key, the input is the
field
where the translation is entered (pre-filled if the translation already exists)
with translation: key input + translation input
Then the submitted form is transformed into an array, which is written to a file.
Crutch-bicycle, but there were pluses:
- written quickly
- was built into the admin panel
- did not require any special tools
- available at any time the project was available on the web
- edits could be applied quickly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question