Skip to content
Open
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
11 changes: 11 additions & 0 deletions cf-post-formats.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Plugin Name: CF Post Formats
Plugin URI: http://crowdfavorite.com
Description: Custom post format admin UI
Text Domain: cf-post-format
Domain Path: /languages/
Version: 1.3.1
Author: crowdfavorite
Author URI: http://crowdfavorite.com
Expand Down Expand Up @@ -38,6 +40,15 @@ function cfpf_base_url() {
return trailingslashit(apply_filters('cfpf_base_url', plugins_url('', __FILE__)));
}

/**
* Load translation files
*/
function cf_post_format_translation_files() {
$theload = load_plugin_textdomain( 'cf-post-format', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}

add_action( 'init', 'cf_post_format_translation_files' );

function cfpf_admin_init() {
$post_formats = get_theme_support('post-formats');
if (!empty($post_formats[0]) && is_array($post_formats[0])) {
Expand Down
Binary file added languages/cf-post-format-es_ES.mo
Binary file not shown.
63 changes: 63 additions & 0 deletions languages/cf-post-format-es_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
msgid ""
msgstr ""
"Project-Id-Version: CF Post Formats\n"
"POT-Creation-Date: 2014-09-03 09:49-0700\n"
"PO-Revision-Date: 2014-09-03 10:09-0700\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.9\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
"X-Poedit-SearchPath-0: .\n"

#: cf-post-formats.php:87
msgid "Loading..."
msgstr "Cargando…"

#: views/format-audio.php:2
msgid "Audio URL (oEmbed) or Embed Code"
msgstr ""

#: views/format-gallery.php:8
msgid "Gallery Images"
msgstr "Galeria de imagenes"

#: views/format-gallery.php:13
msgid "Shortcode"
msgstr ""

#: views/format-gallery.php:18
msgid "Images uploaded to this post"
msgstr "Imágenes cargadas en este articulo
"

#: views/format-gallery.php:49
msgid "Upload Images"
msgstr "Imágenes cargadas
"

#: views/format-link.php:2
msgid "URL"
msgstr ""

#: views/format-quote.php:3
msgid "Source Name"
msgstr "Nombre de la fuente
"

#: views/format-quote.php:7
msgid "Source URL"
msgstr "URL de la fuente"

#: views/format-video.php:2
msgid "Video URL (oEmbed) or Embed Code"
msgstr ""

#: views/tabs.php:11
msgid "Standard"
msgstr ""
63 changes: 63 additions & 0 deletions languages/cf-post-format.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
msgid ""
msgstr ""
"Project-Id-Version: CF Post Formats\n"
"POT-Creation-Date: 2014-09-03 09:49-0700\n"
"PO-Revision-Date: 2014-09-03 10:13-0700\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.9\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SearchPath-0: .\n"

#: cf-post-formats.php:87
msgid "Loading..."
msgstr ""

#: views/format-audio.php:2
msgid "Audio URL (oEmbed) or Embed Code"
msgstr ""

#: views/format-gallery.php:8
msgid "Gallery Images"
msgstr ""

#: views/format-gallery.php:13
msgid "Shortcode"
msgstr ""

#: views/format-gallery.php:18
msgid "Images uploaded to this post"
msgstr ""

#: views/format-gallery.php:49
msgid "Upload Images"
msgstr ""

#: views/format-link.php:2
msgid "URL"
msgstr ""

#: views/format-quote.php:3
msgid "Source Name"
msgstr ""

#: views/format-quote.php:7
msgid "Source URL"
msgstr ""

#: views/format-video.php:2
msgid "Video URL (oEmbed) or Embed Code"
msgstr ""

#: views/tabs.php:11
msgid "Standard"
msgstr ""