Commit 705a04d2 authored by Edward Hervey's avatar Edward Hervey

* ABOUT-NLS:

* intltool-extract.in:
* intltool-merge.in:
* intltool-update.in:
new files
* Makefile.am:
Added new files, support for uninstalled locales and build of po/
* bin/pitivi.in:
support for i18n
* configure.ac:
support for i18n
* pitivi/ui/mainwindow.py:
First python file with i18n support (Advanced view)
* po/LINGUAS:
Added french
* po/POTFILES.in:
Added pitivi/ui/mainwindow.py file
* po/fr.po:
new french translation.


git-svn-id: svn+ssh://svn.gnome.org/svn/pitivi/trunk@804 d3729300-e425-0410-8a4c-d956edccc248
parent 99991f49
This diff is collapsed.
2006-08-14 Edward Hervey <edward@fluendo.com>
* ABOUT-NLS:
* intltool-extract.in:
* intltool-merge.in:
* intltool-update.in:
new files
* Makefile.am:
Added new files, support for uninstalled locales and build of po/
* bin/pitivi.in:
support for i18n
* configure.ac:
support for i18n
* pitivi/ui/mainwindow.py:
First python file with i18n support (Advanced view)
* po/LINGUAS:
Added french
* po/POTFILES.in:
Added pitivi/ui/mainwindow.py file
* po/fr.po:
new french translation.
2006-08-10 Edward Hervey <edward@fluendo.com>
* pitivi/playground.py:
......
AUTOMAKE_OPTIONS = dist-bzip2
SUBDIRS = bin pitivi common
SUBDIRS = bin pitivi common po
desktopdir = $(datadir)/applications
desktop_DATA = pitivi.desktop
......@@ -16,4 +16,31 @@ EXTRA_DIST = \
NEWS \
AUTHORS \
RELEASE \
ABOUT-NLS \
pitivi.png
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update
EXTRA_DIST += \
intltool-extract.in \
intltool-merge.in \
intltool-update.in
locale-uninstalled:
if test -d po; then \
cd po; \
make datadir=../$(top_builddir) install; \
fi
locale-uninstalled-clean:
@-rm -rf _trial_temp
@-rm -rf $(top_builddir)/locale
all-local: locale-uninstalled
clean-local: locale-uninstalled-clean
\ No newline at end of file
......@@ -23,11 +23,15 @@
import os
import sys
import string
import locale
from gettext import bindtextdomain, textdomain
# variables
CONFIGURED_PYTHONPATH = '@CONFIGURED_PYTHONPATH@'
LIBDIR = '@LIBDIR@'
localedir = ""
# Check if we're in development or installed version
# Add the path of pitivi stuff
# TODO : change it when it's finally in cvs
......@@ -36,8 +40,11 @@ def _add_pitivi_path():
dir = os.path.dirname(os.path.abspath(__file__))
if os.path.exists(os.path.join(dir, 'CVS')):
root = os.path.split(dir)[0]
localedir = os.path.join(root, 'locale')
print "localedir is defined as: ", localedir
else:
root = os.path.join(LIBDIR, 'pitivi', 'python')
localedir = "@prefix@/@DATADIRNAME@/locale"
if not root in sys.path:
sys.path.insert(0, root)
......@@ -49,6 +56,11 @@ def _add_pitivi_path():
if path not in sys.path:
sys.path.insert(0, path)
# Added for i18n
locale.setlocale(locale.LC_ALL, '')
bindtextdomain('pitivi', localedir)
textdomain('pitivi')
def _init_gobject_gtk_gst():
try:
import pygtk
......@@ -63,6 +75,13 @@ def _init_gobject_gtk_gst():
gobject.threads_init()
try:
from gtk import glade
except ImportError:
raise SystemExit("Can't find glade module")
glade.bindtextdomain('pitivi', localedir)
try:
import pygst
pygst.require('0.10')
......
......@@ -154,8 +154,13 @@ else
fi
dnl the gettext stuff needed
dnl AM_GNU_GETTEXT_VERSION(0.11.5)
dnl AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.11.5)
AM_GNU_GETTEXT([external])
dnl ALL_LINGUAS="fr"
GETTEXT_PACKAGE="pitivi"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
CONFIGURED_PYTHONPATH=$PYTHONPATH
AC_SUBST(CONFIGURED_PYTHONPATH)
......@@ -175,4 +180,6 @@ pitivi/elements/Makefile
pitivi/pixmaps/Makefile
pitivi.spec
pitivi.desktop
po/Makefile.in
po/Makefile
)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -31,6 +31,8 @@ import gst
import pitivi.instance as instance
import pitivi.configure as configure
from gettext import gettext as _
from timeline import TimelineWidget
from sourcefactories import SourceFactoriesWidget
from viewer import PitiviViewer
......@@ -75,8 +77,9 @@ class PitiviMainWindow(gtk.Window):
("View", None, "_View"),
("Help", None, "_Help")
]
self.toggleactions = [
("AdvancedView", None, "Advanced Vie_w", None, "Switch to advanced view", self._advancedViewCb)
("AdvancedView", None, _("Advanced Vie_w"), None, _("Switch to advanced view"), self._advancedViewCb)
]
self.actiongroup = gtk.ActionGroup("mainwindow")
......
......@@ -2,5 +2,6 @@
#
el
es
fr
sv
zh_CN
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
[encoding: UTF-8]
# [encoding: UTF-8]
pitivi/ui/discoverererrordialog.glade
pitivi/ui/elementsettingsdialog.glade
pitivi/ui/encodingdialog.glade
pitivi/ui/exportsettingswidget.glade
pitivi/ui/projectsettings.glade
pitivi/ui/mainwindow.py
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Christophe Sauthier <christophe.sauthier@gmail.com>, 2006.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: pitivi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2006-08-10 21:02+0200\n"
"PO-Revision-Date: 2006-08-10 21:02+0200\n"
"Last-Translator: Christophe Sauthier <christophe.sauthier@gmail.com>\n"
"Language-Team: GNOME French Team <gnomefr@traduc.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../pitivi/ui/discoverererrordialog.glade.h:1
msgid "Error while analyzing files"
msgstr "Erreur lors de l'analyse des fichiers"
#: ../pitivi/ui/discoverererrordialog.glade.h:2
msgid "The following files weren't discovered properly."
msgstr "Les fichiers suivant n'ont pas été découverts correctement."
#: ../pitivi/ui/elementsettingsdialog.glade.h:1
msgid "<b>Author:</b>"
msgstr "<b>Auteur :</b>"
#: ../pitivi/ui/elementsettingsdialog.glade.h:2
msgid "<b>Description:</b>"
msgstr "<b>Description :</b>"
#: ../pitivi/ui/elementsettingsdialog.glade.h:3
msgid "<b>Plugin Name</b>"
msgstr "<b>Nom du greffon</b>"
#: ../pitivi/ui/elementsettingsdialog.glade.h:4
msgid "<b>Properties</b>"
msgstr "<b>Propriétés</b>"
#: ../pitivi/ui/elementsettingsdialog.glade.h:5
msgid "Author"
msgstr "Auteur"
#: ../pitivi/ui/elementsettingsdialog.glade.h:6
msgid "Description"
msgstr "Description"
#: ../pitivi/ui/elementsettingsdialog.glade.h:7
msgid "Properties for <element>"
msgstr "Propriétés de <element>"
#: ../pitivi/ui/encodingdialog.glade.h:1
msgid "Choose File"
msgstr "Choisissez un fichier"
#: ../pitivi/ui/encodingdialog.glade.h:2
msgid "Output File:"
msgstr "Fichier de sortie :"
#: ../pitivi/ui/encodingdialog.glade.h:3
msgid "Please choose an output file"
msgstr "Veuillez choisir un fichier de sortie"
#: ../pitivi/ui/encodingdialog.glade.h:4
msgid "Render Project"
msgstr "Project rendu"
#: ../pitivi/ui/encodingdialog.glade.h:5
#: ../pitivi/ui/exportsettingswidget.glade.h:33
msgid "Settings"
msgstr "Paramètres"
#: ../pitivi/ui/encodingdialog.glade.h:6
msgid "Settings:"
msgstr "Paramètres :"
#: ../pitivi/ui/exportsettingswidget.glade.h:1
msgid ""
"12 fps\n"
"23,97 fps\n"
"24 fps\n"
"25 fps\n"
"29,97 fps\n"
"30 fps\n"
"60 fps"
msgstr ""
"12 fps\n"
"23,97 fps\n"
"24 fps\n"
"25 fps\n"
"29,97 fps\n"
"30 fps\n"
"60 fps"
#: ../pitivi/ui/exportsettingswidget.glade.h:8
msgid ""
"8 bit\n"
"16 bit\n"
"24 bit\n"
"32 bit"
msgstr ""
"8 bits\n"
"16 bits\n"
"24 bits\n"
"32 bits"
#: ../pitivi/ui/exportsettingswidget.glade.h:12
msgid ""
"8000 Hz\n"
"11025 Hz\n"
"22050 Hz\n"
"44100 Hz\n"
"48000 Hz\n"
"96000 Hz"
msgstr ""
"8000 Hz\n"
"11025 Hz\n"
"22050 Hz\n"
"44100 Hz\n"
"48000 Hz\n"
"96000 Hz"
#: ../pitivi/ui/exportsettingswidget.glade.h:18
msgid "<b>Audio Output</b>"
msgstr ""
#: ../pitivi/ui/exportsettingswidget.glade.h:19
msgid "<b>Export to</b>"
msgstr "<b>Exporter vers</b>"
#: ../pitivi/ui/exportsettingswidget.glade.h:20
msgid "<b>Video Output</b>"
msgstr "<b>Sortie Vidéo</b>"
#: ../pitivi/ui/exportsettingswidget.glade.h:21
msgid "Audio Codec"
msgstr "Codec Audio"
#: ../pitivi/ui/exportsettingswidget.glade.h:22
msgid "Audio Codec:"
msgstr "Codec Audio :"
#: ../pitivi/ui/exportsettingswidget.glade.h:23
msgid "Audio Preset"
msgstr "Pré-sélection Audio"
#: ../pitivi/ui/exportsettingswidget.glade.h:24
msgid "Channels:"
msgstr "Canaux :"
#: ../pitivi/ui/exportsettingswidget.glade.h:25
msgid "Container:"
msgstr "Conteneur :"
#: ../pitivi/ui/exportsettingswidget.glade.h:26
msgid "Depth:"
msgstr "Palette :"
#: ../pitivi/ui/exportsettingswidget.glade.h:27
msgid "Frame rate:"
msgstr "Taux de rafraîchessement :"
#: ../pitivi/ui/exportsettingswidget.glade.h:28
msgid "Height:"
msgstr "Hauteur :"
#: ../pitivi/ui/exportsettingswidget.glade.h:29
msgid ""
"Mono (1)\n"
"Stereo (2)"
msgstr ""
"Mono (1)\n"
"Stéréo (2)"
#: ../pitivi/ui/exportsettingswidget.glade.h:31
msgid "Muxer"
msgstr "Multiplexeur :"
#: ../pitivi/ui/exportsettingswidget.glade.h:32
msgid "Rate:"
msgstr "Taux :"
#: ../pitivi/ui/exportsettingswidget.glade.h:34
msgid "Video Codec"
msgstr "Codec Vidéo"
#: ../pitivi/ui/exportsettingswidget.glade.h:35
msgid "Video Codec:"
msgstr "Codec Vidéo :"
#: ../pitivi/ui/exportsettingswidget.glade.h:36
msgid "Video Preset"
msgstr "Pré-sélection Vidéo"
#: ../pitivi/ui/exportsettingswidget.glade.h:37
msgid "Width:"
msgstr "Largeur :"
#: ../pitivi/ui/projectsettings.glade.h:1
msgid "A short description of your project."
msgstr "Une rapide description de votre projet."
#: ../pitivi/ui/projectsettings.glade.h:2
msgid "Description:"
msgstr "Description:"
#: ../pitivi/ui/projectsettings.glade.h:3
msgid "Name:"
msgstr "Nom :"
#: ../pitivi/ui/projectsettings.glade.h:4
msgid "Project Settings"
msgstr "Paramètres du projet"
#: ../pitivi/ui/projectsettings.glade.h:5
msgid "The name of your project."
msgstr "Le nom de votre projet."
#: ../pitivi/ui/mainwindow.py:79
msgid "Advanced Vie_w"
msgstr "Vue Avancée"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment