add informations about language files

This commit is contained in:
Jonas Heinrich 2020-04-27 20:42:58 +02:00
parent c9497a72df
commit 8318c715fb
5 changed files with 92 additions and 63 deletions

View file

@ -28,3 +28,6 @@ docker_deploy:
docker_up: docker_up:
docker-compose -f wordpress.yml up docker-compose -f wordpress.yml up
generate_pot:
wp i18n make-pot kit kit/languages/kit.pot

View file

@ -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 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. * **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 ## Testing
Can be easily tested using Docker: Can be easily tested using Docker:
``` ```

28
kit/languages/kit.pot Normal file
View file

@ -0,0 +1,28 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

View file

@ -4,8 +4,6 @@ get_header();
<main> <main>
<section class="background-color-white"> <section class="background-color-white">
<div class="content-wrap"> <div class="content-wrap">
@ -15,35 +13,31 @@ get_header();
</div> </div>
<div id="c139" class="frame frame-default frame-type-list frame-layout-0"> <div id="c139" class="frame frame-default frame-type-list frame-layout-0">
<div class="tx-indexedsearch"> <div class="tx-indexedsearch">
<div id="c139" class="frame frame-default frame-type-list frame-layout-0"> <div id="c139" class="frame frame-default frame-type-list frame-layout-0">
<div class="tx-indexedsearch">
<div class="tx-indexedsearch">
<div class="tx-indexedsearch-searchbox"> <div class="tx-indexedsearch-searchbox">
<form method="get" role="search" action="<?php echo site_url(/); ?>"> <form method="get" role="search" action="<?php echo site_url(/); ?>">
<div> <fieldset>
</div> <div class="tx-indexedsearch-form">
<fieldset> <label for="tx-indexedsearch-searchbox-sword"><?php _e('Search for:'); ?></label>
<div class="tx-indexedsearch-form"> <input class="tx-indexedsearch-searchbox-sword" type="text" name="s" value="<?php the_search_query(); ?>" />
<label for="tx-indexedsearch-searchbox-sword"><?php _e('Search for:'); ?></label> </div>
<input class="tx-indexedsearch-searchbox-sword" type="text" name="s" value="<?php the_search_query(); ?>" /> <div class="tx-indexedsearch-search-submit">
</div> <button type="submit" class="tx-indexedsearch-searchbox-button" />
<div class="tx-indexedsearch-search-submit"> <span><?php _e('Search'); ?></span>
<button type="submit" class="tx-indexedsearch-searchbox-button" /> </button>
<span><?php _e('Search'); ?></span> </div>
</button> </fieldset>
</div> </form>
</fieldset>
</form>
</div> </div>
</div> </div>
</div> </div>
<div class="tx-indexedsearch-browsebox"> <div class="tx-indexedsearch-browsebox">
<p> <p>
@ -52,57 +46,55 @@ get_header();
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$post_count_start = (($paged -1) * 10) + 1; $post_count_start = (($paged -1) * 10) + 1;
$post_count_end = ((($paged -1) * 10) + $wp_query->post_count); $post_count_end = ((($paged -1) * 10) + $wp_query->post_count);
_e("Showing results from <strong>" . $post_count_start . " to " . $post_count_end . "</strong>. Total results: <strong>" . $wp_query->found_posts. "</strong>"); _e("Showing results from") . _e(" <strong>" . $post_count_start . " to " . $post_count_end . "</strong>. Total results: <strong>" . $wp_query->found_posts. "</strong>");
?> ?>
</p> </p>
<div class="tx-indexedsearch-browsebox"> <div class="tx-indexedsearch-browsebox">
<?php the_posts_pagination( array( <?php the_posts_pagination( array(
'mid_size' => 2, 'mid_size' => 2,
'prev_text' => __( '< Zurück', 'textdomain' ), 'prev_text' => __( '< Previous', 'kit' ),
'next_text' => __( 'Nächste >', 'textdomain' ), 'next_text' => __( 'Next >', 'kit' ),
'type' => 'list', 'type' => 'list',
'before_page_number' => 'Seite ', 'before_page_number' => __('Page ', 'kit')
) ); ?> ) ); ?>
</div> </div>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<div class="tx-indexedsearch-res">
<h3>
<span class="tx-indexedsearch-title">
<a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a>
</span>
</h3>
<p class="tx-indexedsearch-description">
<?php the_excerpt(); ?>
</p>
<a href="#" class="link-more"><span>Weiterlesen</span></a>
</div>
<?php endwhile; ?>
<div class="tx-indexedsearch-browsebox">
<?php the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __( '< Zurück'),
'next_text' => __( 'Nächste >'),
'type' => 'list',
'before_page_number' => 'Seite ',
) ); ?>
</div>
</div>
</div>
</div> </div>
</section>
<?php while ( have_posts() ) : the_post(); ?>
<div class="tx-indexedsearch-res">
<h3>
<span class="tx-indexedsearch-title">
<a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a>
</span>
</h3>
<p class="tx-indexedsearch-description">
<?php the_excerpt(); ?>
</p>
<a href="#" class="link-more"><span>Weiterlesen</span></a>
</div>
<?php endwhile; ?>
<div class="tx-indexedsearch-browsebox">
<?php the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __( '< Previous', 'kit' ),
'next_text' => __( 'Next >', 'kit' ),
'type' => 'list',
'before_page_number' => __('Page ', 'kit')
) ); ?>
</div>
</div>
</div>
</div>
</section>

View file

@ -11,7 +11,7 @@ get_header();
<div class="content-wrap"> <div class="content-wrap">
<div class="headline-element" id="c145"> <div class="headline-element" id="c145">
<h2>Suche</h2> <h2><?php _e('Search'); ?></h2>
</div> </div>
<div id="c139" class="frame frame-default frame-type-list frame-layout-0"> <div id="c139" class="frame frame-default frame-type-list frame-layout-0">
@ -23,12 +23,12 @@ get_header();
</div> </div>
<fieldset> <fieldset>
<div class="tx-indexedsearch-form"> <div class="tx-indexedsearch-form">
<label for="tx-indexedsearch-searchbox-sword">Suchen nach:</label> <label for="tx-indexedsearch-searchbox-sword"><?php _e('Search for:'); ?></label>
<input class="tx-indexedsearch-searchbox-sword" type="text" name="s" value="" /> <input class="tx-indexedsearch-searchbox-sword" type="text" name="s" value="" />
</div> </div>
<div class="tx-indexedsearch-search-submit"> <div class="tx-indexedsearch-search-submit">
<button type="submit" class="tx-indexedsearch-searchbox-button" /> <button type="submit" class="tx-indexedsearch-searchbox-button" />
<span>Suchen</span> <span><?php _e('Search'); ?></span>
</button> </button>
</div> </div>
</fieldset> </fieldset>