[Bf-translations-svn] SVN commit: /data/svn/bf-translations [781] trunk/po: Now tools work from this repo again!

bf-translations at blender.org bf-translations at blender.org
Wed Jul 4 20:20:37 CEST 2012


Revision: 781
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-translations&revision=781
Author:   mont29
Date:     2012-07-04 18:20:37 +0000 (Wed, 04 Jul 2012)
Log Message:
-----------
Now tools work from this repo again!

Added Paths:
-----------
    trunk/po/bl_i18n_override_settings.py

Property Changed:
----------------
    trunk/po/


Property changes on: trunk/po
___________________________________________________________________
Added: svn:ignore
   + __pycache__


Added: trunk/po/bl_i18n_override_settings.py
===================================================================
--- trunk/po/bl_i18n_override_settings.py	                        (rev 0)
+++ trunk/po/bl_i18n_override_settings.py	2012-07-04 18:20:37 UTC (rev 781)
@@ -0,0 +1,85 @@
+# ***** BEGIN GPL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ***** END GPL LICENSE BLOCK *****
+
+# <pep8 compliant>
+
+import os.path
+
+import settings
+
+
+###############################################################################
+# MISC
+###############################################################################
+
+# The min level of completeness for a po file to be imported from /branches
+# into /trunk, as a percentage. -1 means "import everything".
+IMPORT_MIN_LEVEL = -1
+
+# Should po parser warn when finding a first letter not capitalized?
+WARN_MSGID_NOT_CAPITALIZED = True
+
+
+###############################################################################
+# PATHS
+###############################################################################
+
+TOOLS_DIR = settings.TOOLS_DIR
+
+# The Blender executable!
+# This is just an example, you’ll most likely have to edit it!
+BLENDER_EXEC = os.path.abspath(os.path.join(TOOLS_DIR, "..", "..", "..", "..",
+                                            "build_cmake_msgs", "bin", "blender"))
+
+# The Blender source root path.
+# This is just an example, you’ll most likely have to override it in user_settings.py!
+SOURCE_DIR = os.path.abspath(os.path.join(TOOLS_DIR, "..", "..", "..", "..",
+                                          "blender_msgs"))
+
+# The bf-translation repository (you'll likely have to override this in your
+# user_settings.py).
+I18N_DIR = os.path.abspath(os.path.join(TOOLS_DIR, "..", "..", ".."))
+
+# The /branches path (should be OK).
+BRANCHES_DIR = os.path.join(I18N_DIR, "branches")
+
+# The /trunk path (should be OK).
+TRUNK_DIR = os.path.join(I18N_DIR, "trunk")
+
+# The /trunk/po path, should be OK.
+TRUNK_PO_DIR = os.path.join(TRUNK_DIR, "po")
+
+# The /trunk/mo path, should be OK.
+TRUNK_MO_DIR = os.path.join(TRUNK_DIR, "locale")
+
+# The file storing Blender-generated messages.
+FILE_NAME_MESSAGES = os.path.join(TRUNK_PO_DIR, "messages.txt")
+
+# The Blender source path to check for i18n macros.
+POTFILES_SOURCE_DIR = os.path.join(SOURCE_DIR, "source")
+
+# The "source" file storing which files should be processed by xgettext,
+# used to create FILE_NAME_POTFILES
+FILE_NAME_SRC_POTFILES = os.path.join(TRUNK_PO_DIR, "_POTFILES.in")
+
+# The final (generated) file storing which files
+# should be processed by xgettext.
+FILE_NAME_POTFILES = os.path.join(TRUNK_PO_DIR, "POTFILES.in")
+
+# The template messages file.
+FILE_NAME_POT = os.path.join(TRUNK_PO_DIR, ".".join((settings.DOMAIN, "pot")))



More information about the Bf-translations-svn mailing list