- Thu Oct 15, 2009 9:56 pm
#4556
I am just learning to use ProcessMaker and I could be doing something wrong, but I wanted to report this just in case something needs adjusting--
I tried to make an addition in the English po file (processmaker.en.po). After I made the change, when I went to the Admin screen to import the file, I got a really long error ending with "The .po file have a bad format!" At first I thought it was from something I added. But then I uninstalled and deleted all of Processmaker, did a clean install, and tried to import the English po file as it came straight from the installation (with no changes) and got the same error.
Here's the gist of the error:
-----------------
Notice: Undefined offset: 1 in C:\Program Files\ProcessMaker\apps\processmaker\htdocs\workflow\engine\classes\class.languages.php on line 87
Notice: Undefined offset: 1 in C:\Program Files\ProcessMaker\apps\processmaker\htdocs\workflow\engine\classes\class.languages.php on line 87
... (many more lines like those above, too much to post in this message)
string(31) "The .po file have a bad format!"
------------------
I made some modification to class.languages.php file so it would print out each item in the language file as it was being imported, so I could see what item was causing the error during import. Looks like the error was being thrown on or around this item:
# TRANSLATION
# JAVASCRIPT/USERS_REASSIGN
#: JAVASCRIPT/USERS_REASSIGN
msgid "You can't to delete this user because has some pending tasks, reassign the pending tasks first. <br/><br/>
Do you want to reassign these tasks now?"
msgstr "You can't to delete this user because has some pending tasks, reassign the pending tasks first. <br/><br/>
Do you want to reassign these tasks now?"
Just to test it, I simplified this item in the English po file to this:
# TRANSLATION
# JAVASCRIPT/USERS_REASSIGN
#: JAVASCRIPT/USERS_REASSIGN
msgid "You can't delete user because of some pending tasks, reassign the pending tasks first. Reassign these tasks now?"
msgstr "You can't delete user because of some pending tasks, reassign the pending tasks first. Reassign these tasks now?"
Then I ran the import again. It got farther this time, but eventually gave similar error. It looked like this time the error was occurring on or around this item:
# TRANSLATION
# JAVASCRIPT/ID_MSG_GROUPS_ADDCONFIRM
#: JAVASCRIPT/ID_MSG_GROUPS_ADDCONFIRM
msgid "At least one user must be selected.
"
msgstr "At least one user must be selected.
"
This is version 1.2-2740 running on Windows Vista.
I tried to make an addition in the English po file (processmaker.en.po). After I made the change, when I went to the Admin screen to import the file, I got a really long error ending with "The .po file have a bad format!" At first I thought it was from something I added. But then I uninstalled and deleted all of Processmaker, did a clean install, and tried to import the English po file as it came straight from the installation (with no changes) and got the same error.
Here's the gist of the error:
-----------------
Notice: Undefined offset: 1 in C:\Program Files\ProcessMaker\apps\processmaker\htdocs\workflow\engine\classes\class.languages.php on line 87
Notice: Undefined offset: 1 in C:\Program Files\ProcessMaker\apps\processmaker\htdocs\workflow\engine\classes\class.languages.php on line 87
... (many more lines like those above, too much to post in this message)
string(31) "The .po file have a bad format!"
------------------
I made some modification to class.languages.php file so it would print out each item in the language file as it was being imported, so I could see what item was causing the error during import. Looks like the error was being thrown on or around this item:
# TRANSLATION
# JAVASCRIPT/USERS_REASSIGN
#: JAVASCRIPT/USERS_REASSIGN
msgid "You can't to delete this user because has some pending tasks, reassign the pending tasks first. <br/><br/>
Do you want to reassign these tasks now?"
msgstr "You can't to delete this user because has some pending tasks, reassign the pending tasks first. <br/><br/>
Do you want to reassign these tasks now?"
Just to test it, I simplified this item in the English po file to this:
# TRANSLATION
# JAVASCRIPT/USERS_REASSIGN
#: JAVASCRIPT/USERS_REASSIGN
msgid "You can't delete user because of some pending tasks, reassign the pending tasks first. Reassign these tasks now?"
msgstr "You can't delete user because of some pending tasks, reassign the pending tasks first. Reassign these tasks now?"
Then I ran the import again. It got farther this time, but eventually gave similar error. It looked like this time the error was occurring on or around this item:
# TRANSLATION
# JAVASCRIPT/ID_MSG_GROUPS_ADDCONFIRM
#: JAVASCRIPT/ID_MSG_GROUPS_ADDCONFIRM
msgid "At least one user must be selected.
"
msgstr "At least one user must be selected.
"
This is version 1.2-2740 running on Windows Vista.