When I create a new image using Custom Document, the tab name (Unnamed) is translated (Sem nome, in pt_BR). This not happens with others templates. Comic Templates: - European BD template -> tab name: European BD template (untranslated) - US-style comics template -> tab name: US-style comics template (untranslated) - Manga template -> tab name: Manga template (untranslated) - waffle-iron grid -> tab name: Unnamed (untranslated) Design Templates: - All designs templates -> tab name: unnamed (untranslated) DSLR Templates: - All DSLR templates -> tab name: unnamed (untranslated) Texture Templates: - All Texture templates -> tab name: unnamed (untranslated) I think for all templates could be "Unnamed" (Capitalized) or "unnamed", but translated. Reproducible: Always
Created attachment 92927 [details] Screenshot
I can confirm the issue, but I have no clue how we should fix this. Is there any template where this doesn't happen?
(In reply to Boudewijn Rempt from comment #2) > I can confirm the issue, but I have no clue how we should fix this. Is there > any template where this doesn't happen? No. All new documents using templates are not translated. More information: After you save the document, the tab shows: %1 - %2 1% - template name 2% - file name.(extension) When you save a document with "Custom Document" or "Create from Clipboard": 1% - file name 2% - file name.(extension) For the templates below: 1% = Unnamed or unnamed. This make no sense to me. If is necessary shows template name, the tab should display the correct template name. Comic Templates: waffle-iron grid Design Templates: all designs templates DSLR Templates: - all DSLR templates Texture Templates: - all Texture templates
This exact *behaviour* described here no longer occurs, because the document title is no longer (since October 2017) shown in the tab: https://phabricator.kde.org/D8386 But the untranslated ‘unnamed’ title is still *stored* as the document’s title (‘File → Document Information → Title’) when you create a new file using a template.
From what I understand, what needs to be done here is to ensure that the document created from the template has the same document title as the template name, which should be a translated string (i18n("...")). (Note that when you create your own template, it probably won't use a translated string, but that's another thing).