Personal default template not used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Inkscape |
Low
|
Slagvi |
Bug Description
When I created a file ~/.config/
I has to rename it default.fr.svg, and then it worked (NB: my system has a french locale).
My understanding is that, if inkspace finds a *localized* default template, it overrides a non-localisezed one. Since /usr/share/
I think a *personal* (i.e. in ~/.confifg) default.svg should override any *system* default*.svg.
su_v (suv-lp) wrote : | #1 |
Changed in inkscape: | |
status: | New → Confirmed |
tags: | added: preferences translation ui |
Changed in inkscape: | |
importance: | Undecided → Low |
zapyon (zapyon) wrote : | #2 |
I have exactly the same Problem with the Inkscape 0.47.0-2+b1 Debian package (squeeze).
/home/<
BUT: if I remove (i.e. rename) default.svg and default.de.svg in the system directory /usr/share/
By the by: is the default.<lang>.svg Debian-specific?
Cheers
Andreas
zapyon (zapyon) wrote : | #3 |
PS: renaming the user template to default.de.svg (while using German environment on an XFCE desktop) didn't help.
zapyon (zapyon) wrote : | #4 |
PPS: Checked again with a new user account using English language in XFCE:
When using English language the user template is loaded even if /usr/share/
So I get the impression the problem occurs only with langauges other than English, as the original reporter of this bug is using Frensh localization and I am using German in my default profile.
Cheers,
Andreas
jazzynico (jazzynico) wrote : | #5 |
zapyon> By the by: is the default.<lang>.svg Debian-specific?
No, it exists on all operating systems.
su_v (suv-lp) wrote : | #6 |
Related source code:
<http://
tags: | added: easy-fix |
Slagvi (slagvi) wrote : | #7 |
Changed loading priority. Now it looks something like this:
1. ~/.config/
2. ~/.config/
3. /usr/share/
4. /usr/share/
Changed in inkscape: | |
status: | Confirmed → In Progress |
jazzynico (jazzynico) wrote : | #8 |
Tested successfully on Windows XP, Inkscape trunk revision 12276.
Thanks for the patch!
Changed in inkscape: | |
assignee: | nobody → Slagvi (slagvi) |
milestone: | none → 0.49 |
su_v (suv-lp) wrote : | #9 |
Quick test with Inkscape 0.48+devel r12276 + patch on OS X 10.7.5 (GTK+/Quartz 2.24.17, glib 2.34.3) works as expected.
(the original patch didn't apply cleanly, attaching new diff against local trunk branch)
jazzynico (jazzynico) wrote : | #10 |
Patch also tested on Debian Testing with no issue, and committed trunk revision 12277.
Congrats for your first patch, Slagvi!
Changed in inkscape: | |
status: | In Progress → Fix Committed |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
reproduced with Inkscape 0.47+devel r8941 on OS X 10.5.8
If I change the UI language via 'Preferences > Interface > Language', Inkscape ignores the custom default template '~/.config/ inkscape/ templates/ default. svg' and uses the localized system default template. To still load a custom default template from '~/.config/ inkscape/ templates' the file needs to be named corresponding to the locale used for the UI (default. {locale} .svg).