From 8318c715fbb74864eac51ff4da59f813ebaed614 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 27 Apr 2020 20:42:58 +0200 Subject: [PATCH] add informations about language files --- Makefile | 3 ++ README.md | 6 +++ kit/languages/kit.pot | 28 +++++++++++ kit/search.php | 110 ++++++++++++++++++++---------------------- kit/searchpage.php | 8 +-- 5 files changed, 92 insertions(+), 63 deletions(-) create mode 100644 kit/languages/kit.pot diff --git a/Makefile b/Makefile index 73a53b7..b03f147 100644 --- a/Makefile +++ b/Makefile @@ -28,3 +28,6 @@ docker_deploy: docker_up: docker-compose -f wordpress.yml up + +generate_pot: + wp i18n make-pot kit kit/languages/kit.pot diff --git a/README.md b/README.md index 82bb641..d3b27fa 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,12 @@ Fork of the experimental KIT theme from kit-ausbildung.de, adapted to Wordpres. * **Using the zip archive:** Download the latest [tar.bz2 archive](https://git.project-insanity.org/onny/nextcloud-app-radio/repository/archive.tar.bz2?ref=master), extract the directory inside your `nextcloud/apps/` directory, and rename it to `radio`. For stable releases, you can also download one of the [releases](https://git.project-insanity.org/onny/nextcloud-app-radio/) tar.bz2 archives. Then go to the Apps manager tab in your Nextcloud web interface, and enable the Radio app. * **Using package manager:** For ArchLinux, there is an [AUR package](https://aur.archlinux.org/packages/nextcloud-app-radio-git/) available. +## Development +Generate or update language file: +``` +make generate_pot +``` + ## Testing Can be easily tested using Docker: ``` diff --git a/kit/languages/kit.pot b/kit/languages/kit.pot new file mode 100644 index 0000000..160262b --- /dev/null +++ b/kit/languages/kit.pot @@ -0,0 +1,28 @@ +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"POT-Creation-Date: 2020-04-27T18:41:34+00:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.2.0\n" +"X-Domain: kit\n" + +#: search.php:56 +#: search.php:83 +msgid "< Previous" +msgstr "" + +#: search.php:57 +#: search.php:84 +msgid "Next >" +msgstr "" + +#: search.php:59 +#: search.php:86 +msgid "Page " +msgstr "" diff --git a/kit/search.php b/kit/search.php index f935269..7e5dd71 100644 --- a/kit/search.php +++ b/kit/search.php @@ -4,8 +4,6 @@ get_header();
- -
@@ -15,35 +13,31 @@ get_header();
-
+
-
+
- -

@@ -52,57 +46,55 @@ get_header(); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $post_count_start = (($paged -1) * 10) + 1; $post_count_end = ((($paged -1) * 10) + $wp_query->post_count); - _e("Showing results from " . $post_count_start . " to " . $post_count_end . ". Total results: " . $wp_query->found_posts. ""); + _e("Showing results from") . _e(" " . $post_count_start . " to " . $post_count_end . ". Total results: " . $wp_query->found_posts. ""); ?>

2, - 'prev_text' => __( '< Zurück', 'textdomain' ), - 'next_text' => __( 'Nächste >', 'textdomain' ), + 'prev_text' => __( '< Previous', 'kit' ), + 'next_text' => __( 'Next >', 'kit' ), 'type' => 'list', - 'before_page_number' => 'Seite ', + 'before_page_number' => __('Page ', 'kit') ) ); ?>
-
- - - -
-

- - - -

-

- -

- Weiterlesen -
- - -
- 2, - 'prev_text' => __( '< Zurück'), - 'next_text' => __( 'Nächste >'), - 'type' => 'list', - 'before_page_number' => 'Seite ', - ) ); ?> -
- - - -
- -
- -
-
+ + +
+

+ + + +

+

+ +

+ Weiterlesen +
+ + +
+ 2, + 'prev_text' => __( '< Previous', 'kit' ), + 'next_text' => __( 'Next >', 'kit' ), + 'type' => 'list', + 'before_page_number' => __('Page ', 'kit') + ) ); ?> +
+ + + + + + + + + diff --git a/kit/searchpage.php b/kit/searchpage.php index 0052f9b..a8d593d 100644 --- a/kit/searchpage.php +++ b/kit/searchpage.php @@ -11,7 +11,7 @@ get_header();
-

Suche

+

@@ -23,18 +23,18 @@ get_header();
- +
- +