Error with action parameter with translated Variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Fix Committed
|
Critical
|
Stani |
Bug Description
I'm using phatch from ppa, 0.2.7, with polish environment (LANG is pl_PL.UTF-8)
Variables (like <filename>) are translated and this causes error. Either variables should not be translatable, there's some bug in phatch, or they are incorrectly translated (with space inside: <filename> -> <nazwa pliku>).
Steps to reproduce:
1. start with polish environment
2. click the "+", select "plik" (== "file"), then "Kopiuj" (== "copy")
3. notice the default values for the action - they are translated and have spaces inside:
Nazwa pliku: <nazwa pliku>
W: <dektop>
4. edit the second argument and add "<nazwa pliku>"
Phatch shows a dialog with error:
In: ('unexpected EOF while parsing', ('<nazwa pliku>', 1, 11, 'nazwa pliku'))
Use the Image Inspector to list all the variables.
The changes to the argument are unsaved.
5. Also notice that when editing the argument the variable names go back to original, english:
<desktop>
6. edit the second argument again and add "<filename>" (yes, in english)
Notice that the variable is automatically changed to <nazwa pliku>. No errors reported this time.
7. edit the second argument again but do not change anything.
Notice the error again.
8. ad 5 - when the <nazwa pliku> does not change back to <filename> when editing
9. adding <podkatalog> (==subfolder) does not produce the error.
Changed in phatch: | |
importance: | Undecided → Critical |
milestone: | none → 0.2.8 |
status: | New → Confirmed |
After discussing this on the mailing list I will disable translations for variables.