Here's Czech localization of Webform that corresponds to updated PO template generated for version 5.x-2.3. Both files are attached.

I noticed that names for form components (textarea, grid,...) are not included in the template while some other redundant strings are. Is there a reason for this? If the default drupal localization lacks translation of these strings, localized Webform won't fix it even if it's part of the module...

CommentFileSizeAuthor
czech.zip24.53 KBcharmer

Comments

quicksketch’s picture

Status: Needs review » Fixed

Thanks! I've added both files. The last several .pot files were generated by GoofyX (which I'm very thankful for). You might ask him about irregularities in those files. I'm still rather ignorant of any usage of locale beyond theory.

GoofyX’s picture

Hi,

Sorry for "poluting" the issue queue quicksketch. charmer contacted me using the contact form here in drupal.org and I thought I should reply using this issue.

Whatever templates I committed were created using the latest version of potx, so if there are missing strings, then it's potx's fault. Which strings are missing from the templates? charmer, could you give more specific examples?

charmer’s picture

That's a slight misunderstanding - I too use potx for generating templates and it always worked just fine for me.
As I stated above I miss strings for individual component types i.e. strings like "textarea", "grid", "markup", "fieldset" and others. But I believe they are not part of the template because they are not marked as strings for localization in source files like in this example: t("Options").

I couldn't even find the labels to mark them myself and I thought GoofyX may be able to help in this. I've found that each component type has its .inc file in components directory of the module. I think that adding label for each type and marking it as localizable string would be enough but I'm not sure where exactly to put these labels and not break anything.

The point is that since Webform uses these form types extensively it should have them localizable so the user wouldn't have to depend on main drupal PO template to have them.

GoofyX’s picture

OK, now I understand what you mean.

It's up to quicksketch to provide a maybe string array of the component types, wrapping the strings in t() calls, so that potx will catch them.

quicksketch, what do you think?

quicksketch’s picture

Or better, yet, we really need to simply ask each component .inc file what it's proper name is directly, rather than assuming it's the same as .inc file. Especially since some components like "pagebreak" should really be two words: "Page break".

charmer’s picture

Yes, I think that's exactly it! Thank you in advance.

Status: Fixed » Closed (fixed)

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

charmer’s picture

Title: Czech translation + new template » Webform Czech translation + new template