1- an easy fix: missing t('') in the breadcrumb. See patch.

2- still with the breadcrumbs, I have not seen where the string "projects" is set. I don't seem to be able to translate that part of the breadcrumbs.

3- I am not sure whether this should be a potx issue or a project_issue issue: when generating the .pot file for project_issue using the php potx-cli, I had the following error:

[augustin@203 project_issue-5]$ php potx-cli.php
Processing comment.inc...
Processing issue.inc...
Invalid marker content in issue.inc:1600
* t($node->category)

Processing mail.inc...
Processing project_issue.module...
Processing project_issue.install...
Invalid marker content in project_issue.install:748
* t("This and all subsequent updates of Project issue were safely aborted. Correct the problems listed above, then <a href=\"".base_path()."update.php?op=selection\">re-run update.php</a>, click 'Select versions', select update %update for project_issue, and click 'Update'.",array('%update'=>$current_update))

Processing project_issue.info...
Processing generate/project_issue_generate.inc...
Processing generate/project_issue_generate.module...
Processing generate/project_issue_generate.info...

Done.

Comments

beginner’s picture

StatusFileSize
new1.42 KB

3 more t('').

hunmonk’s picture

Status: Needs review » Postponed (maintainer needs more info)

applied patch in comment #1 to 5.x-2.x, 5.x-1.x, and 4.7.x-2.x

re: #2 -- what does the breadcrumb look like that you're trying to translate. i can't tell which one to look for with your description.

please open another issue for problem #3

dww’s picture

Eek. The patch from #1 is wrong, where you added t() around the issue priority values. We use those in menu paths and such, where you can't just translate them without introducing all kinds of weird errors. I *know* I wrote all of this up somewhere, but I can't find it right now. :( Anyway, we should back-out that part of the change, and either find the other issue or open a new one about what it'd take to be able to safely translate the priorities.

Problem 3 is definitely stuff wrong in project_issue, not potx. You can't put dynamic stuff inside t().

beginner’s picture

Title: 3 translation problems. » translating critical, normal, minor.
Status: Postponed (maintainer needs more info) » Active

I thought point 1 and 2 would be trivial, that's why I lumped all 3 together.
Since it is not, I opened a separate issue for point 3:
http://drupal.org/node/206210

1- missing t(): do you mean there is no way to translate 'critical', 'normal' and 'minor'?

2- at node/43, when viewing an issue, the breadcrumbs look like this: Accueil › Projects › Le site Ouvaton AL/PT › Problèmes which is the translation of Home › Projects › My site name › Issues.
"Projects" is not translated and leads to /project which seems to correspond to "Download" on this site...
... Oh! Ok, I found it. It is a menu item. I can translate it there. The menu item was disactivated on my site, though. Is it still supposed to appear in the breadcrumbs?

hunmonk’s picture

Title: translating critical, normal, minor. » 3 translation problems.
Status: Active » Postponed (maintainer needs more info)

well, gosh -- it would have been nice to have a code comment there to that effect in the first place ;)

rolled back the relevant stuff on all branches, and added an appropriate code comment so this doesn't happen again...

beginner’s picture

Title: 3 translation problems. » translating critical, normal, minor.
Status: Postponed (maintainer needs more info) » Active

cross posted.

beginner’s picture

Thanks for fixing the other stuff.

Can we know why we can't translate the priority settings, and what it would take to be able to do so?

dww’s picture

Status: Active » Fixed

Upon closer inspection, I'm being dumb. ;)
http://drupal.org/cvs?commit=94420
Fixed in all branches.
Sorry everyone.

beginner’s picture

Thank you :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.