Code

i18n. Palettes translation with context (see Bug #667402, Colour palettes not transla...
[inkscape.git] / src / ui / dialog / swatches.cpp
index 1747556eea615ec03c89a7b56c24f84877cd48d5..728bed2741608827c382926576b3dc01b0527ebc 100644 (file)
@@ -436,7 +436,7 @@ void _loadPaletteFile( gchar const *filename )
                                     if ( !hasErr && *ptr ) {
                                         char* n = trim(ptr);
                                         if (n != NULL) {
-                                            name = _(n);
+                                            name = g_dpgettext2(NULL, "Palette", n);
                                         }
                                     }
                                     if ( !hasErr ) {