Devam Ediyor

509638 PHP Class to find strings in a file

HI,

I need a php class which searches through a file to find a specific pattern. An example file I attached.

The target is to call a function extract('this is a text string', 'language name');

which will search through the file and looks for this part:

#: \views\pages\[url removed, login to view]

msgid "Your tmp directory is writable."

msgstr "EN: Your tmp directory is writable."

The function should return the msgstr for the given msgid.

The files are in such a folder structure:

root/locale/eng/LC_MESSAGES/[url removed, login to view]

The 'language name' is eq to 'eng' in the above example.

If the msgstr is empty it is like this:

msgstr ""

In this case, return the original msgid.

msgid and msgstr can contain html elements.

This entire script is needed to get called by an ajax function to give translation strings back to jquery file.

Beceriler: AJAX, Her şey Kabul, Javascript, jQuery / Prototype, PHP, Çeviri

Daha fazlasını görün: translation find, this class jquery, text string search, string pattern, string find c, search text string, php string to html, pattern strings, pattern string, jquery class, find language and translation, find javascript, c string pattern, strings, search eng, po file, find the language, find target, find root, find original, find files in directory, find a name, file folder, call a, php javascript class

İşveren Hakkında:
( 77 değerlendirme ) Lippetal, Germany

Proje NO: #2255567

Seçilen:

iraman

Let's do this.

0 gün içinde 25$ USD
(17 Değerlendirme)
3.9