Bug 348481 - Untranslated tab name created with templates
Summary: Untranslated tab name created with templates
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Translation (other bugs)
Version First Reported In: 2.9.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-31 03:30 UTC by André Marcelo Alvarenga
Modified: 2021-03-27 20:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot (5.35 KB, image/png)
2015-05-31 03:31 UTC, André Marcelo Alvarenga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description André Marcelo Alvarenga 2015-05-31 03:30:43 UTC
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
Comment 1 André Marcelo Alvarenga 2015-05-31 03:31:13 UTC
Created attachment 92927 [details]
Screenshot
Comment 2 Halla Rempt 2015-05-31 10:15:07 UTC
I can confirm the issue, but I have no clue how we should fix this. Is there any template where this doesn't happen?
Comment 3 André Marcelo Alvarenga 2015-05-31 14:06:55 UTC
(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
Comment 4 Karl Ove Hufthammer 2019-08-01 21:01:55 UTC
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.
Comment 5 Tiar 2021-03-27 20:28:43 UTC
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).