Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions blazer-six-gist-oembed.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: blazersix-gist-oembed
* Domain Path: /languages/
*/

// Instantiate main plugin class
Expand All @@ -44,8 +45,8 @@ function blazersix_gist_oembed_localization() {
$domain = 'blazersix-gist-oembed';
// The "plugin_locale" filter is also used in load_plugin_textdomain()
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
load_textdomain( $domain, WP_LANG_DIR . '/blazer-six-gist-oembed/' . $domain . '-' . $locale . '.mo' );
load_plugin_textdomain( $domain, false, plugin_dir_path( __FILE__ ) . 'languages/' );
load_textdomain( 'blazersix-gist-oembed', WP_LANG_DIR . '/blazer-six-gist-oembed/' . $domain . '-' . $locale . '.mo' );
load_plugin_textdomain( 'blazersix-gist-oembed', false, dirname( plugin_basename( __FILE__ ) ) . 'languages/' );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does plugin_dir_path() not give the same result as dirname(plugin_basename())?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, does not work - had this with lots of other plugins already, only the change brings it to work.... "load_plugin_textdomain()" requires relative path depending on plugin dir, maybe plugin_dir_path() is absolute or one level to high? It just does not work...

}

add_action( 'init', 'blazersix_gist_oembed_init' );
Expand Down
Binary file added languages/blazersix-gist-oembed-de_DE.mo
Binary file not shown.
132 changes: 132 additions & 0 deletions languages/blazersix-gist-oembed-de_DE.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# This German Language File: Copyright (C) 2013 by David Decker of deckerweb.de & genesisthemes.de
# This file is distributed under the same license as the Blazer Six Gist oEmbed Plugin package.
#
# Weitere deutsche Sprachdateien fuer WordPress-Plugins und -Themes finden Sie unter:
# --> http://deckerweb.de/sprachdateien/
#
msgid ""
msgstr ""
"Project-Id-Version: Blazer Six Gist oEmbed v1.1.0\n"
"Report-Msgid-Bugs-To: http://deckerweb.de/kontakt/\n"
"POT-Creation-Date: 2013-01-04 10:07:55+0000\n"
"PO-Revision-Date: 2013-01-04 11:29+0100\n"
"Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
"Language-Team: DECKERWEB <deckerweb.mobil@googlemail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Language: German\n"
"X-Poedit-Country: GERMANY\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
"X-Poedit-Basepath: ../\n"
"X-Textdomain-Support: yes\n"
"X-Poedit-SearchPath-0: .\n"

#@ blazersix-gist-oembed
#. translators: plugin header field 'Name'
#: blazer-six-gist-oembed.php:0
msgid "Blazer Six Gist oEmbed"
msgstr "Blazer Six Gist oEmbed"

#@ blazersix-gist-oembed
#. translators: plugin header field 'PluginURI'
#: blazer-six-gist-oembed.php:0
msgid "https://github.com/bradyvercher/wp-blazer-six-gist-oembed"
msgstr "https://github.com/bradyvercher/wp-blazer-six-gist-oembed"

#@ blazersix-gist-oembed
#. translators: plugin header field 'Description'
#: blazer-six-gist-oembed.php:0
msgid "Gist oEmbed and shortcode support with caching."
msgstr "Gist oEmbed und Shortcode-Unterstützung mit Caching."

#@ blazersix-gist-oembed
#. translators: plugin header field 'Author'
#: blazer-six-gist-oembed.php:0
msgid "Blazer Six"
msgstr "Blazer Six"

#@ blazersix-gist-oembed
#. translators: plugin header field 'AuthorURI'
#: blazer-six-gist-oembed.php:0
msgid "http://www.blazersix.com/"
msgstr "http://www.blazersix.com/"

#@ blazersix-gist-oembed
#. translators: plugin header field 'Version'
#: blazer-six-gist-oembed.php:0
msgid "1.1.0"
msgstr "1.1.0"

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed-debug-bar-panel.php:42
msgid "Gist oEmbed"
msgstr "Gist oEmbed"

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:200
msgid "Shortcode did not have a required id attribute."
msgstr "Der Shortcode weist kein erforderliches ID-Attribut auf."

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:209
msgid "View this code snippet on GitHub."
msgstr "Diesen Codeschnipsel auf GitHub.com ansehen."

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:228
msgid " (shortcode attribute)"
msgstr " (Shortcode-Attribut)"

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:367
msgid "<strong>Raw Source:</strong> Transient Cache"
msgstr "<strong>Originalquelle:</strong> Transient Cache"

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:381
msgid "<strong>Raw Source:</strong> Remote JSON Endpoint - "
msgstr "<strong>Originalquelle:</strong> Entfernter JSON Endpunkt - "

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:382
msgid "<strong>Output Source:</strong> Processed the raw source."
msgstr "<strong>Ausgegebene Quelle:</strong> Die Originallquelle wurde verarbeitet."

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:401
msgid "<strong>Raw Source:</strong> Post Meta Fallback"
msgstr "<strong>Originalquelle:</strong> Beitrags-Meta Fallback"

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:402
msgid "<strong>Output Source:</strong> Processed Raw Source"
msgstr "<strong>Ausgegebene Quelle:</strong> Verarbeitetete Originalquelle"

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:404
msgid "Remote call and transient failed and fallback was empty."
msgstr "Entfernter Aufruf und Transient schlugen fehl und der Fallback war leer."

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:410
msgid "<strong>Output Source:</strong> Transient Cache"
msgstr "<strong>Ausgegebene Quelle:</strong> Transient Cache"

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:413
msgid "JSON Endpoint:"
msgstr "JSON Endpunkt:"

#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:414
msgid "Raw Key (Transient & Post Meta):"
msgstr "Originalquellen-Schlüssel - Raw Key (Transient &amp; Beitrags-Meta):"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should "Raw Key" have been left in the translation here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, don't know how to properly handle this in other languages like German, seems like a special term, and I should change it back - thanks for the feedback :)


#@ blazersix-gist-oembed
#: class-blazer-six-gist-oembed.php:415
msgid "Processed Output Key (Transient):"
msgstr "Verarbeiteter Ausgabe-Schlüssel (Transient):"

133 changes: 133 additions & 0 deletions languages/blazersix-gist-oembed.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# This German Language File: Copyright (C) 2013 by David Decker of deckerweb.de & genesisthemes.de
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit isn't needed for the .pot :-)
Similarly, the Report-Msgid-Bugs-To, X-Poedit-Language / Country and other headers would need changing back to our current .pot please :-)

# This file is distributed under the same license as the Blazer Six Gist oEmbed Plugin package.
#
# Weitere deutsche Sprachdateien fuer WordPress-Plugins und -Themes finden Sie unter:
# --> http://deckerweb.de/sprachdateien/
#
msgid ""
msgstr ""
"Project-Id-Version: Blazer Six Gist oEmbed v1.1.0\n"
"Report-Msgid-Bugs-To: http://deckerweb.de/kontakt/\n"
"POT-Creation-Date: 2013-01-04 10:07:55+0000\n"
"PO-Revision-Date: 2013-01-04 10:07:55+0000\n"
"Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
"Language-Team: DECKERWEB <deckerweb.mobil@googlemail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Language: German\n"
"X-Poedit-Country: GERMANY\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-SearchPath-0: .\n"
"X-Textdomain-Support: yes"

#. translators: plugin header field 'Name'
#: blazer-six-gist-oembed.php:0
#@ blazersix-gist-oembed
msgid "Blazer Six Gist oEmbed"
msgstr ""

#. translators: plugin header field 'PluginURI'
#: blazer-six-gist-oembed.php:0
#@ blazersix-gist-oembed
msgid "https://github.com/bradyvercher/wp-blazer-six-gist-oembed"
msgstr ""

#. translators: plugin header field 'Description'
#: blazer-six-gist-oembed.php:0
#@ blazersix-gist-oembed
msgid "Gist oEmbed and shortcode support with caching."
msgstr ""

#. translators: plugin header field 'Author'
#: blazer-six-gist-oembed.php:0
#@ blazersix-gist-oembed
msgid "Blazer Six"
msgstr ""

#. translators: plugin header field 'AuthorURI'
#: blazer-six-gist-oembed.php:0
#@ blazersix-gist-oembed
msgid "http://www.blazersix.com/"
msgstr ""

#. translators: plugin header field 'Version'
#: blazer-six-gist-oembed.php:0
#@ blazersix-gist-oembed
msgid "1.1.0"
msgstr ""

#: class-blazer-six-gist-oembed-debug-bar-panel.php:42
#@ blazersix-gist-oembed
msgid "Gist oEmbed"
msgstr ""

#: class-blazer-six-gist-oembed.php:200
#@ blazersix-gist-oembed
msgid "Shortcode did not have a required id attribute."
msgstr ""

#: class-blazer-six-gist-oembed.php:209
#@ blazersix-gist-oembed
msgid "View this code snippet on GitHub."
msgstr ""

#: class-blazer-six-gist-oembed.php:228
#@ blazersix-gist-oembed
msgid " (shortcode attribute)"
msgstr ""

#: class-blazer-six-gist-oembed.php:367
#@ blazersix-gist-oembed
msgid "<strong>Raw Source:</strong> Transient Cache"
msgstr ""

#: class-blazer-six-gist-oembed.php:381
#@ blazersix-gist-oembed
msgid "<strong>Raw Source:</strong> Remote JSON Endpoint - "
msgstr ""

#: class-blazer-six-gist-oembed.php:382
#@ blazersix-gist-oembed
msgid "<strong>Output Source:</strong> Processed the raw source."
msgstr ""

#: class-blazer-six-gist-oembed.php:401
#@ blazersix-gist-oembed
msgid "<strong>Raw Source:</strong> Post Meta Fallback"
msgstr ""

#: class-blazer-six-gist-oembed.php:402
#@ blazersix-gist-oembed
msgid "<strong>Output Source:</strong> Processed Raw Source"
msgstr ""

#: class-blazer-six-gist-oembed.php:404
#@ blazersix-gist-oembed
msgid "Remote call and transient failed and fallback was empty."
msgstr ""

#: class-blazer-six-gist-oembed.php:410
#@ blazersix-gist-oembed
msgid "<strong>Output Source:</strong> Transient Cache"
msgstr ""

#: class-blazer-six-gist-oembed.php:413
#@ blazersix-gist-oembed
msgid "JSON Endpoint:"
msgstr ""

#: class-blazer-six-gist-oembed.php:414
#@ blazersix-gist-oembed
msgid "Raw Key (Transient & Post Meta):"
msgstr ""

#: class-blazer-six-gist-oembed.php:415
#@ blazersix-gist-oembed
msgid "Processed Output Key (Transient):"
msgstr ""