Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
25 class-research-projects.php
@@ -206,6 +206,7 @@ private static function get_blog_ids() {
*/
private static function single_activate() {
// TODO: Define activation functionality here
+ flush_rewrite_rules();
}
/**
@@ -215,6 +216,7 @@ private static function single_activate() {
*/
private static function single_deactivate() {
// TODO: Define deactivation functionality here
+ flush_rewrite_rules();
}
/**
@@ -254,12 +256,17 @@ public function register_post_type() {
),
'description' => __('Research projects', $this->plugin_slug),
'public' => true,
- 'exclude_from_search' => true,
- 'publicy_queryable' => false,
+ 'rewrite' => array(
+ 'slug' => _x('proyectos', 'Slug URL', $this->plugin_slug),
+ 'with_front' => false
+ ),
+ 'exclude_from_search' => false,
+ 'publicy_queryable' => true,
+ 'query_var' => false,
'show_ui' => true,
'show_in_nav_menus' => false,
- 'register_meta_box_cb' => array($this, 'register_meta_boxes'),
- 'capabilities' => array(
+ 'register_meta_box_cb' => array( $this, 'register_meta_boxes' ),
+ 'capabilities' => array(
'edit_post' => 'edit_theme_options',
'edit_posts' => 'edit_theme_options',
'edit_others_posts' => 'edit_theme_options',
@@ -270,12 +277,7 @@ public function register_post_type() {
),
'taxonomies' => array('research_category'),
'hierarchical' => false,
- 'supports' => array(
- 'title',
- 'editor',
- 'revisions',
- 'thumbnail'
- )
+ 'supports' => array( 'title', 'editor', 'revisions', 'thumbnail' )
)
);
}
@@ -301,12 +303,11 @@ public function register_taxonomies () {
'new_item_name' => __( 'New Category Name' ),
'menu_name' => __( 'Categories' ),
),
-
'rewrite' => array(
'slug' => 'research_category',
'with_front' => false,
'hierarchical' => true
- ),
+ )
));
}
View
BIN languages/research-projects-es_ES.mo
Binary file not shown.
View
61 languages/research-projects-es_ES.po
@@ -4,8 +4,8 @@ msgid ""
msgstr ""
"Project-Id-Version: TODO 1.0.0\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/plugin-name\n"
-"POT-Creation-Date: 2013-11-23 16:07-0600\n"
-"PO-Revision-Date: 2013-11-23 16:07-0600\n"
+"POT-Creation-Date: 2013-11-25 00:15-0600\n"
+"PO-Revision-Date: 2013-11-25 00:15-0600\n"
"Last-Translator: Marco Godínez <mgodinez@filos.unam.mx>\n"
"Language-Team: LANGUAGE <translations@example.com >\n"
"MIME-Version: 1.0\n"
@@ -18,109 +18,114 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-SearchPath-0: .\n"
-#: class-research-projects.php:244 class-research-projects.php:255
+#: class-research-projects.php:246 class-research-projects.php:257
msgid "Research projects"
msgstr "Proyectos"
-#: class-research-projects.php:245
+#: class-research-projects.php:247
msgid "Research project"
msgstr "Proyecto"
-#: class-research-projects.php:246
+#: class-research-projects.php:248
msgid "Add new"
msgstr "Añadir nuevo"
-#: class-research-projects.php:247
+#: class-research-projects.php:249
msgid "Add new project"
msgstr "Añadir nuevo proyecto"
-#: class-research-projects.php:248
+#: class-research-projects.php:250
msgid "Edit project"
msgstr "Editar proyecto"
-#: class-research-projects.php:249
+#: class-research-projects.php:251
msgid "New project"
msgstr "Nuevo proyecto"
-#: class-research-projects.php:250
+#: class-research-projects.php:252
msgid "View project"
msgstr "Ver proyecto"
-#: class-research-projects.php:251
+#: class-research-projects.php:253
msgid "Search research projects"
msgstr "Buscar proyectos de investigación"
-#: class-research-projects.php:252
+#: class-research-projects.php:254
msgid "Not found research projects"
msgstr "No se encontraron proyectos de investigación"
-#: class-research-projects.php:253
+#: class-research-projects.php:255
msgid "Not found research projects in trash"
msgstr "No se encontraron proyectos de investigación en la papelera"
-#: class-research-projects.php:293
+#: class-research-projects.php:260
+msgctxt "Slug URL"
+msgid "proyectos"
+msgstr "projects"
+
+#: class-research-projects.php:296
msgctxt "taxonomy general name"
msgid "Categories"
msgstr ""
-#: class-research-projects.php:294
+#: class-research-projects.php:297
msgctxt "taxonomy singular name"
msgid "Category"
msgstr ""
-#: class-research-projects.php:295
+#: class-research-projects.php:298
msgid "Search Categories"
msgstr ""
-#: class-research-projects.php:296
+#: class-research-projects.php:299
msgid "All Categories"
msgstr ""
-#: class-research-projects.php:297 class-research-projects.php:298
+#: class-research-projects.php:300 class-research-projects.php:301
msgid "Parent Category"
msgstr ""
-#: class-research-projects.php:299
+#: class-research-projects.php:302
msgid "Edit Category"
msgstr ""
-#: class-research-projects.php:300
+#: class-research-projects.php:303
msgid "Update Category"
msgstr ""
-#: class-research-projects.php:301
+#: class-research-projects.php:304
msgid "Add New Category"
msgstr ""
-#: class-research-projects.php:302
+#: class-research-projects.php:305
msgid "New Category Name"
msgstr ""
-#: class-research-projects.php:303
+#: class-research-projects.php:306
msgid "Categories"
msgstr ""
-#: class-research-projects.php:324
+#: class-research-projects.php:326
msgid "Funding Programs"
msgstr "Programas de financiamiento"
-#: class-research-projects.php:334
+#: class-research-projects.php:336
msgid "Research products"
msgstr "Productos de investigación"
-#: class-research-projects.php:344 views/meta_boxes/rss-link.php:1
+#: class-research-projects.php:346
msgid "RSS Link"
msgstr "Enlace RSS"
-#: class-research-projects.php:508
+#: class-research-projects.php:510
msgid "Page Title"
msgstr ""
-#: class-research-projects.php:509
+#: class-research-projects.php:511
msgid "Menu Text"
msgstr ""
-#: class-research-projects.php:535
+#: class-research-projects.php:537
msgid "Settings"
msgstr "Opciones"

No commit comments for this range

Something went wrong with that request. Please try again.