summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-09 17:54:02 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-10 14:03:54 +0200
commit9059b559791b9f5333c24815c4bfd77cc6201c5e (patch)
treef0b0ca5d7f60707650d81dac2c2a61091d7c2709 /apps
parent32be4746f8514e06e838b4aa0ee45cb832df1b2c (diff)
downloadnextcloud-server-9059b559791b9f5333c24815c4bfd77cc6201c5e.tar.gz
nextcloud-server-9059b559791b9f5333c24815c4bfd77cc6201c5e.zip
make more strings translatable
Diffstat (limited to 'apps')
-rw-r--r--apps/media/appinfo/app.php4
-rw-r--r--apps/media/js/collection.js2
-rw-r--r--apps/media/js/music.js2
-rw-r--r--apps/media/js/playlist.js14
-rw-r--r--apps/media/js/scanner.js4
-rw-r--r--apps/media/l10n/xgettextfiles6
-rw-r--r--apps/media/templates/music.php18
7 files changed, 29 insertions, 21 deletions
diff --git a/apps/media/appinfo/app.php b/apps/media/appinfo/app.php
index bc80536a969..ebd360eccb3 100644
--- a/apps/media/appinfo/app.php
+++ b/apps/media/appinfo/app.php
@@ -20,11 +20,13 @@
*
*/
+$l=new OC_L10N('media');
+
require_once('apps/media/lib_media.php');
OC_Util::addScript('media','loader');
OC_App::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' ));
-OC_App::addNavigationEntry( array( 'id' => 'media_index', 'order' => 2, 'href' => OC_Helper::linkTo( 'media', 'index.php' ), 'icon' => OC_Helper::imagePath( 'media', 'media.png' ), 'name' => 'Music' ));
+OC_App::addNavigationEntry( array( 'id' => 'media_index', 'order' => 2, 'href' => OC_Helper::linkTo( 'media', 'index.php' ), 'icon' => OC_Helper::imagePath( 'media', 'media.png' ), 'name' => $l->t('Music') ));
?>
diff --git a/apps/media/js/collection.js b/apps/media/js/collection.js
index df7b79e332d..e49024973fa 100644
--- a/apps/media/js/collection.js
+++ b/apps/media/js/collection.js
@@ -33,7 +33,7 @@ Collection={
Collection.loadedListeners[i]();
}
if(collection.length==0){
- $('#scan input.start').val('Scan Collection');
+ $('#scan input.start').val(t('media','Scan Collection'));
$('#plugins a[href="#collection"]').trigger('click');
}
diff --git a/apps/media/js/music.js b/apps/media/js/music.js
index 7034824cad8..c04c579d1ca 100644
--- a/apps/media/js/music.js
+++ b/apps/media/js/music.js
@@ -15,7 +15,7 @@ $(document).ready(function(){
PlayList.play(oldSize);
PlayList.render();
});
- var button=$('<input type="button" title="Add to playlist" class="add"></input>');
+ var button=$('<input type="button" title="'+t('media','Add to playlist')+'" class="add"></input>');
button.css('background-image','url('+OC.imagePath('core','actions/play-add')+')')
button.click(function(event){
event.stopPropagation();
diff --git a/apps/media/js/playlist.js b/apps/media/js/playlist.js
index 636ae29c555..ad6c63a0333 100644
--- a/apps/media/js/playlist.js
+++ b/apps/media/js/playlist.js
@@ -19,7 +19,7 @@ PlayList.render=function(){
PlayList.render();
});
tr.hover(function(){
- var button=$('<img class="remove" title="Remove"/>');
+ var button=$('<img class="remove" title="'+t('media','Remove')+'"/>');
button.attr('src',OC.imagePath('core','actions/delete'));
$(this).children().last().append(button);
button.click(function(event){
@@ -74,14 +74,14 @@ $(document).ready(function(){
function procesSelection(){
var selected=PlayList.getSelected();
if(selected.length==0){
- $('th.name span').text('Name');
- $('th.artist').text('Artist');
- $('th.album').text('Album');
- $('th.time').text('Time');
+ $('th.name span').text(t('media','Name'));
+ $('th.artist').text(t('media','Artist'));
+ $('th.album').text(t('media','Album'));
+ $('th.time').text(t('media','Time'));
$('th.plays').empty();
- $('th.plays').text('Plays');
+ $('th.plays').text(t('media','Plays'));
}else{
- var name=selected.length+' selected';
+ var name=selected.length+' '+t('media','selected');
var artist=$(selected[0]).data('artist');
var album=$(selected[0]).data('album');
var time=$(selected[0]).data('time');
diff --git a/apps/media/js/scanner.js b/apps/media/js/scanner.js
index 165f86d05f5..0ebf408e702 100644
--- a/apps/media/js/scanner.js
+++ b/apps/media/js/scanner.js
@@ -68,10 +68,10 @@ Scanner={
toggle:function(){
if(Scanner.stopScanning){
Scanner.start();
- $('#scan input.stop').val('Pause');
+ $('#scan input.stop').val(t('media','Pause'));
}else{
Scanner.stop();
- $('#scan input.stop').val('Resume');
+ $('#scan input.stop').val(t('media','Resume'));
}
}
diff --git a/apps/media/l10n/xgettextfiles b/apps/media/l10n/xgettextfiles
new file mode 100644
index 00000000000..39a310a4537
--- /dev/null
+++ b/apps/media/l10n/xgettextfiles
@@ -0,0 +1,6 @@
+../appinfo/app.php
+../templates/music.php
+../js/scanner.js
+../js/collection.js
+../js/music.js
+../js/playlist.js
diff --git a/apps/media/templates/music.php b/apps/media/templates/music.php
index 5d0b0b6f0c4..d103e10b750 100644
--- a/apps/media/templates/music.php
+++ b/apps/media/templates/music.php
@@ -24,14 +24,14 @@
<table id="playlist">
<thead>
<tr>
- <th class="name"><input id="selectAll" type="checkbox">Name</th>
- <th class="artist">Artist</th>
+ <th class="name"><input id="selectAll" type="checkbox"><?php echo $l->t('Name')?></th>
+ <th class="artist"><?php echo $l->t('Artist')?></th>
</tr>
</thead>
<tbody>
<tr>
<td>
- The playlist is empty
+ <?php echo $l->t('The playlist is empty')?>
</td>
</tr>
</tbody>
@@ -49,16 +49,16 @@
<div id="rightcontent">
<div id="scan">
- <p id="scancount" style="display:none"><span class="songCount">0</span> Songs scanned</p>
+ <p id="scancount" style="display:none"><span class="songCount">0</span> <?php echo $l->t('Songs scanned')?></p>
<div id="scanprogressbar"></div>
- <input type="button" class="start" value="Rescan Collection"></input>
- <input type="button" class="stop" style="display:none" value="Pause"></input>
+ <input type="button" class="start" value="<?php echo $l->t('Rescan Collection')?>"></input>
+ <input type="button" class="stop" style="display:none" value="<?php echo $l->t('Pause')?>"></input>
</div>
<table id="collection">
<thead>
- <th>Artist</th>
- <th>Album</th>
- <th>Title</th>
+ <th><?php echo $l->t('Artist')?></th>
+ <th><?php echo $l->t('Album')?></th>
+ <th><?php echo $l->t('Title')?></th>
</thead>
<tbody>
<tr class="template">