Skip to content

Commit

Permalink
Fixed loading
Browse files Browse the repository at this point in the history
* Fixed loading
* Added binaries for 32 bits, 64 bits and ARM
  • Loading branch information
ezequielpereira committed Jan 10, 2016
1 parent f6035f5 commit 01910f9
Show file tree
Hide file tree
Showing 49 changed files with 243 additions and 2 deletions.
Binary file added bin/gtranslator32
Binary file not shown.
Binary file added bin/gtranslator64
Binary file not shown.
Binary file added bin/gtranslator_arm
Binary file not shown.
17 changes: 15 additions & 2 deletions bin/sugarGTranslator
Expand Up @@ -9,6 +9,19 @@ while [ -n "$2" ] ; do
esac
shift;shift
done
export LD_PRELOAD="$SUGAR_BUNDLE_PATH/lib/libsugarize.so"
export GSETTINGS_SCHEMA_DIR=$SUGAR_BUNDLE_PATH/schemas
glib-compile-schemas $SUGAR_BUNDLE_PATH/schemas
export NET_WM_NAME="GTranslator"
exec gtranslator
if [ "`uname -a | grep x86_64`" ]; then
export LD_PRELOAD=$SUGAR_BUNDLE_PATH/lib64/libsugarize.so
export LD_LIBRARY_PATH=$SUGAR_BUNDLE_PATH/lib64:$LD_LIBRARY_PATH
exec gtranslator64
elif [ "`uname -a | grep armv7l`" ]; then
export LD_PRELOAD=$SUGAR_BUNDLE_PATH/lib_arn/libsugarize.so
export LD_LIBRARY_PATH=$SUGAR_BUNDLE_PATH/lib_arm:$LD_LIBRARY_PATH
exec gtranslator_arm
else
export LD_PRELOAD=$SUGAR_BUNDLE_PATH/lib32/libsugarize.so
export LD_LIBRARY_PATH=$SUGAR_BUNDLE_PATH/lib32:$LD_LIBRARY_PATH
exec gtranslator32
fi
Binary file added lib32/libalternatelang.so
Binary file not shown.
Binary file added lib32/libdict.so
Binary file not shown.
Binary file added lib32/libfullscreen.so
Binary file not shown.
Binary file added lib32/libgda-5.0.so.4
Binary file not shown.
Binary file added lib32/libgda-report-5.0.so.4
Binary file not shown.
Binary file added lib32/libgda-sqlite.so
Binary file not shown.
Binary file added lib32/libgda-xslt-5.0.so.4
Binary file not shown.
Binary file added lib32/libgdict-1.0.so.9
Binary file not shown.
Binary file added lib32/libgdl-3.so.5
Binary file not shown.
Binary file added lib32/libgtranslator-private.so
Binary file not shown.
Binary file added lib32/libinsertparams.so
Binary file not shown.
Binary file added lib32/libopentran.so
Binary file not shown.
Binary file added lib32/libpythonloader.so
Binary file not shown.
Binary file added lib32/libsourcecodeview.so
Binary file not shown.
File renamed without changes.
Binary file added lib32/libtranslation-memory.so
Binary file not shown.
Binary file added lib64/libgda-5.0.so.4
Binary file not shown.
Binary file added lib64/libgdl-3.so.5
Binary file not shown.
Binary file added lib64/libgtkspell3-3.so.0
Binary file not shown.
Binary file added lib64/libgtranslator-private.so
Binary file not shown.
Binary file added lib64/libpeas-1.0.so.0
Binary file not shown.
Binary file added lib64/libpeas-gtk-1.0.so.0
Binary file not shown.
Binary file added lib64/libsugarize.so
Binary file not shown.
Binary file added lib_arm/libalternatelang.so
Binary file not shown.
Binary file added lib_arm/libdict.so
Binary file not shown.
Binary file added lib_arm/libfullscreen.so
Binary file not shown.
Binary file added lib_arm/libgda-5.0.so.4
Binary file not shown.
Binary file added lib_arm/libgda-report-5.0.so.4
Binary file not shown.
Binary file added lib_arm/libgda-sqlite.so
Binary file not shown.
Binary file added lib_arm/libgda-xslt-5.0.so.4
Binary file not shown.
Binary file added lib_arm/libgdict-1.0.so.9
Binary file not shown.
Binary file added lib_arm/libgdl-3.so.5
Binary file not shown.
Binary file added lib_arm/libgtranslator-private.so
Binary file not shown.
Binary file added lib_arm/libinsertparams.so
Binary file not shown.
Binary file added lib_arm/libopentran.so
Binary file not shown.
Binary file added lib_arm/libpythonloader.so
Binary file not shown.
Binary file added lib_arm/libsourcecodeview.so
Binary file not shown.
Binary file added lib_arm/libsugarize.so
Binary file not shown.
Binary file added lib_arm/libtranslation-memory.so
Binary file not shown.
Binary file added schemas/gschemas.compiled
Binary file not shown.
131 changes: 131 additions & 0 deletions schemas/org.gnome.gtranslator.gschema.xml
@@ -0,0 +1,131 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<enum id="org.gnome.gtranslator.SwitcherStyle">
<value value="0" nick="text"/>
<value value="1" nick="icon"/>
<value value="2" nick="both"/>
<value value="3" nick="toolbar"/>
<value value="4" nick="tabs"/>
<value value="5" nick="none"/>
</enum>

<schema path="/org/gnome/gtranslator/" id="org.gnome.gtranslator" gettext-domain="gtranslator">
<child schema="org.gnome.gtranslator.preferences" name="preferences"/>
<child schema="org.gnome.gtranslator.state" name="state"/>
<child schema="org.gnome.gtranslator.plugins" name="plugins"/>
</schema>
<schema path="/org/gnome/gtranslator/preferences/" id="org.gnome.gtranslator.preferences" gettext-domain="gtranslator">
<child schema="org.gnome.gtranslator.preferences.files" name="files"/>
<child schema="org.gnome.gtranslator.preferences.editor" name="editor"/>
<child schema="org.gnome.gtranslator.preferences.ui" name="ui"/>
</schema>
<schema path="/org/gnome/gtranslator/preferences/files/" id="org.gnome.gtranslator.preferences.files" gettext-domain="gtranslator">
<key type="b" name="warn-if-contains-fuzzy">
<default>true</default>
<summary>Warn if file contains fuzzy translations</summary>
<description>If true, warn the user when saving a PO translation file containing fuzzy strings.</description>
</key>
<key type="b" name="auto-save">
<default>false</default>
<summary>Auto save files</summary>
<description>If true, automatically save files at specified intervals.</description>
</key>
<key type="i" name="auto-save-interval">
<default>4</default>
<summary>Auto save interval</summary>
<description>Interval in minutes at which to automatically save files.</description>
</key>
<key type="b" name="create-backup">
<default>true</default>
<summary>Create backup before saving</summary>
<description>If true, create a backup copy of a file before saving it.</description>
</key>
<key type="b" name="use-profile-values">
<default>true</default>
<summary>Use profile values for header</summary>
<description>If true, overwrite the values in the PO header with those in the active profile.</description>
</key>
</schema>
<schema path="/org/gnome/gtranslator/preferences/editor/" id="org.gnome.gtranslator.preferences.editor" gettext-domain="gtranslator">
<key type="b" name="highlight-syntax">
<default>true</default>
<summary>Highlight syntax in edit fields</summary>
<description>If true, apply syntax highlighting to strings in edit fields.</description>
</key>
<key type="b" name="visible-whitespace">
<default>true</default>
<summary>Make whitespace visible</summary>
<description>If true, display whitespace in strings as representative symbols.</description>
</key>
<key type="b" name="use-custom-font">
<default>false</default>
<summary>Use custom font</summary>
<description>If true, use a custom font for edit fields.</description>
</key>
<key type="s" name="editor-font">
<default>'Sans 10'</default>
<summary>Editor font</summary>
<description>Custom font to use for edit fields.</description>
</key>
<key type="b" name="unmark-fuzzy-when-changed">
<default>true</default>
<summary>Remove fuzzy status when message is changed</summary>
<description>If true, remove fuzzy status from translations when they are changed.</description>
</key>
<key type="b" name="spellcheck">
<default>true</default>
<summary>Check spelling</summary>
<description>If true, check the spelling of translated messages.</description>
</key>
</schema>
<schema path="/org/gnome/gtranslator/preferences/ui/" id="org.gnome.gtranslator.preferences.ui" gettext-domain="gtranslator">
<key name="panel-switcher-style" enum="org.gnome.gtranslator.SwitcherStyle">
<default>'both'</default>
<summary>Side panel switcher style</summary>
<description>Style for switchers in the side panel.</description>
</key>
<key type="s" name="color-scheme">
<default>'classic'</default>
<summary>Color scheme</summary>
<description>Name of a gtksourceview color scheme to use for syntax highlighting.</description>
</key>
<key type="s" name="sort-order">
<default>'id'</default>
<summary>Message list sort order</summary>
<description>Sort order to use in the message list. Possible values are "status", "id", "original-text" and "translated-text".</description>
</key>
</schema>
<schema path="/org/gnome/gtranslator/state/" id="org.gnome.gtranslator.state">
<child schema="org.gnome.gtranslator.state.window" name="window"/>
<child schema="org.gnome.gtranslator.state.history-entry" name="history-entry"/>
</schema>
<schema path="/org/gnome/gtranslator/state/window/" id="org.gnome.gtranslator.state.window">
<key type="i" name="state">
<default>0</default>
</key>
<key type="(ii)" name="size">
<default>(775, 500)</default>
</key>
<key type="i" name="content-panel-size">
<default>325</default>
</key>
<key type="i" name="context-panel-size">
<default>525</default>
</key>
</schema>
<schema path="/org/gnome/gtranslator/state/history-entry/" id="org.gnome.gtranslator.state.history-entry">
<key type="as" name="search-for-entry">
<default>['']</default>
</key>
<key type="as" name="replace-with-entry">
<default>['']</default>
</key>
</schema>
<schema path="/org/gnome/gtranslator/plugins/" id="org.gnome.gtranslator.plugins" gettext-domain="gtranslator">
<key type="as" name="active-plugins">
<default>['translation-memory']</default>
<summary>Active plugins</summary>
<description>List of active plugins. It contains the "Location" of the active plugins. See the .gtranslator-plugin file for obtaining the "Location" of a given plugin.</description>
</key>
</schema>
</schemalist>
20 changes: 20 additions & 0 deletions schemas/org.gnome.gtranslator.plugins.codeview.gschema.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/org/gnome/gtranslator/plugins/codeview/" id="org.gnome.gtranslator.plugins.codeview" gettext-domain="gtranslator">
<key type="b" name="use-editor">
<default>false</default>
<summary>Use the System Editor</summary>
<description>Whether use the system editor to show the source code</description>
</key>
<key type="s" name="program-cmd">
<default>'gedit'</default>
<summary>The Editor to Launch</summary>
<description>The command to launch the editor you want to use</description>
</key>
<key type="s" name="line-cmd">
<default>'+'</default>
<summary>Arguments for the Command</summary>
<description>Arguments to pass to the program command line to select the line</description>
</key>
</schema>
</schemalist>
22 changes: 22 additions & 0 deletions schemas/org.gnome.gtranslator.plugins.dictionary.gschema.xml
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/org/gnome/gtranslator/plugins/dictionary/" id="org.gnome.gtranslator.plugins.dictionary" gettext-domain="gtranslator">
<key type="s" name="database">
<default>'*'</default>
<summary>Database</summary>
<description>Word database</description>
</key>
<key type="s" name="source-name">
<default>'Default'</default>
<summary>Source Name</summary>
</key>
<key type="s" name="strategy">
<default>'.'</default>
<summary>Strategy</summary>
</key>
<key type="i" name="panel-position">
<default>200</default>
<summary>Panel Position</summary>
</key>
</schema>
</schemalist>
25 changes: 25 additions & 0 deletions schemas/org.gnome.gtranslator.plugins.open-tran.gschema.xml
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/org/gnome/gtranslator/plugins/open-tran/" id="org.gnome.gtranslator.plugins.open-tran" gettext-domain="gtranslator">
<key type="s" name="search-code">
<default>'en'</default>
<summary>Search Code</summary>
<description>The language code to search for</description>
</key>
<key type="s" name="own-code">
<default>'gl'</default>
<summary>Own Code</summary>
<description>The language code in which you want the results</description>
</key>
<key type="b" name="use-mirror-server">
<default>false</default>
<summary>Use Mirror Server</summary>
<description>Use a local copy of the main Open-Tran server at open-tran.eu</description>
</key>
<key type="s" name="mirror-server-url">
<default>''</default>
<summary>Mirror Server URL</summary>
<description>URL of an Open-Tran mirror server</description>
</key>
</schema>
</schemalist>
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/org/gnome/gtranslator/plugins/translation-memory/" id="org.gnome.gtranslator.plugins.translation-memory" gettext-domain="gtranslator">
<key type="s" name="po-directory">
<default>''</default>
<summary>PO directory</summary>
<description>Directory containing PO files to add to the translation memory.</description>
</key>
<key type="b" name="restrict-to-filename">
<default>false</default>
<summary>Restrict search by filename</summary>
<description>If true, only include files with a specified filename when searching the translation memory.</description>
</key>
<key type="s" name="filename-restriction">
<default>''</default>
<summary>Filename to restrict search to</summary>
<description>Filename to which searching of the translation memory should be restricted.</description>
</key>
<key type="i" name="max-missing-words">
<default>2</default>
<summary>Maximum number of missing words</summary>
<description>Maximum number of words that can be missing from a message displayed as a match by the translation memory.</description>
</key>
<key type="i" name="max-length-diff">
<default>2</default>
<summary>Maximum difference in message length</summary>
<description>Maximum difference in length between messages displayed as matches by the translation memory.</description>
</key>
</schema>
</schemalist>

0 comments on commit 01910f9

Please sign in to comment.