1 pvasili Apr 15, 2006 21:44
3 afwas Jan 03, 2008 23:03
I haven't got a clue where it's about but the error is explained as follows:
The regex needs a starter equal to a finisher. In this case there is neither, but I am not sure. Either # *is* a starter and needs a finisher, like
elseif( preg_match( '#: #', $line, $matches)) //searches fo r :
but more likely the sarchsruing is '#: ' in which case it need both a starter and a finisher like:
elseif( preg_match( '@#: @', $line, $matches)) //searches for #:
Where starter and finisher can be any symbol that is not searched foir in the expression.
Hope this helps either you or pvasili
Good luck
4 reszel Jan 04, 2008 21:06
Afwas wrote:
...
Hope this helps either you or pvasiliGood luck
Thanx! but I think this script won't work with beta 2.3.0.
Lines like this:
#: ..\..\..\inc\CONTROL\collections\categories.php:229
are giving warnings.
(I'm using echo to see line processing).
5 gerardp Sep 23, 2008 06:45
This error is caused by a missing '#' in line 79 of the posted code. This should be '#: #' instead of '#: '
You can fix the code yourself after copying the above code in a PHP file and modify line 79 accordingly, or download the corrected PHP file here: http://gerardprins.com/download/you_localr.zip
Unzip the file and copy it into the root of your language folder (e.j.: ..locales/es_ES, ../locales/nl_NL), upload it, and then run it from your browser (e.j.: yoursite.com/locales/es_ES/you_localr.php)
It will look for messages.po in the LC_MESSAGES folder (make sure it is there and named correctly) and OVERWRITE the existing global.php. Make sure you have a copy_/backup in case anything goes wrong.
Download the resulting file onto your local system, and make any corrections necessary, using Dreamweaver or any other plain text editor.
The file typically will not include the array options (in my experience) so you might want to copy/paste those from an existing global.php file and modify.
Hope this helps.
pvasili wrote:
is giving me problems (about 100 times):
Warning: preg_match() [function.preg-match]: No ending delimiter '#' found in /home/www/onkologen.dk/locales/sv_SE/convert.php on line 79
Finish !
Could be that my input file is incomplete:
#, fuzzy
msgid "File Group"
msgstr "Grupp"
Maybe you could adapt the script to accept fuzzy lines.
I'm VBA coder, not PHP coder :-(