diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-02-10 13:09:26 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-02-10 13:09:26 +0400 |
commit | c0fa16f2c99abb3db9b4fab1a952383e6fd81167 (patch) | |
tree | 1a52708f0ebdec86e1412f4354f5a72c03d2e88b /release/scripts/startup/bl_ui/space_text.py | |
parent | 5d4df1a999d65bdfe67cec1088b34d9d47fc5412 (diff) |
Another fix for r54414 (cleaner to "import" pgettext once at top of files, also now using usual '_' shortcut).
Diffstat (limited to 'release/scripts/startup/bl_ui/space_text.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_text.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index b32172e25e0..53b806cc7ea 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -20,6 +20,8 @@ import bpy from bpy.types import Header, Menu, Panel +_ = bpy.app.translations.pgettext + class TEXT_HT_header(Header): bl_space_type = 'TEXT_EDITOR' @@ -71,9 +73,8 @@ class TEXT_HT_header(Header): row = layout.row() if text.filepath: - pgettext = bpy.app.translations.pgettext if text.is_dirty: - row.label(text=pgettext("File: *%r (unsaved)") % + row.label(text=_("File: *%r (unsaved)") % text.filepath, translate=False) else: row.label(text=pgettext("File: %r") % |