Skip to content
Snippets Groups Projects
Commit 9059b559 authored by Robin Appelman's avatar Robin Appelman
Browse files

make more strings translatable

parent 32be4746
No related branches found
No related tags found
No related merge requests found
Showing
with 271 additions and 49 deletions
<div id="controls">
<form id="newgroup">
<input id="newgroupname" placeholder="name"></input>
<input type="submit" value="create"></input>
<input id="newgroupname" placeholder="<?php echo $l->t('Name')?>"></input>
<input type="submit" value="<?php echo $l->t('Create')?>"></input>
</form>
<form id="newuser">
<input id="newusername" placeholder="username"></input>
<input type="password" id="newuserpassword" placeholder="password"></input>
<select id="newusergroups" data-placeholder="groups" title="groups" multiple="multiple">
<input id="newusername" placeholder="<?php echo $l->t('Name')?>"></input>
<input type="password" id="newuserpassword" placeholder="<?php echo $l->t('Password')?>"></input>
<select id="newusergroups" data-placeholder="groups" title="<?php echo $l->t('Groups')?>" multiple="multiple">
<?php foreach($_["groups"] as $group): ?>
<option value="<?php echo $group['name'];?>"><?php echo $group['name'];?></option>
<?php endforeach;?>
</select>
<input type="submit" value="Create"></input>
<input type="submit" value="<?php echo $l->t('Create')?>"></input>
</form>
</div>
<ul id="leftcontent">
......@@ -30,10 +30,13 @@
<td class="groups"><?php if( $user["groups"] ){ echo $user["groups"]; }else{echo "&nbsp";} ?></td>
<td class="remove">
<?php if($user['name']!=OC_User::getUser()):?>
<img alt="Remove" title="Remove" class='svg' src='<?php echo image_path('core','actions/delete.svg') ?>'/>
<img alt="Remove" title="<?php echo $l->t('Remove')?>" class='svg' src='<?php echo image_path('core','actions/delete.svg') ?>'/>
<?php endif;?>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<div id="#selecteduser">
</div>
......@@ -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') ));
?>
......@@ -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');
}
......
......@@ -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();
......
......@@ -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');
......
......@@ -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'));
}
}
......
../appinfo/app.php
../templates/music.php
../js/scanner.js
../js/collection.js
../js/music.js
../js/playlist.js
......@@ -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">
......
......@@ -97,6 +97,7 @@ legend { padding:.2em; font-size:1.2em; }
#navigation .subentry a { padding-left:3.1em; font-size:1em; }
#navigation #settings { position:absolute; bottom:3.5em; width:100%; }
#navigation #expand { margin:0 0 .2em 1.2em; cursor:pointer; }
#navigation #settings>span{padding-bottom:1em};
/* USER SETTINGS ------------------------------------------------------------ */
#quota_indicator { margin:0 4em 1em 0; padding:0; border:1px solid #ddd; border-radius:10px; -webkit-border-radius:10px; -moz-border-radius:10px; }
......
......@@ -270,7 +270,11 @@ $(document).ready(function(){
$('#expand').click(function() {
$('#settings li').slideToggle();
});
$('#expand').hover(function(){
$('#navigation #settings>span').fadeIn();
},function(){
$('#navigation #settings>span').fadeOut();
})
});
......
../templates/404.php
../templates/installation.php
../templates/layout.guest.php
../templates/login.php
../templates/logout.php
../templates/part.pagenavi.php
../templates/part.searchbox.php
../../lib/app.php
......@@ -32,7 +32,7 @@
<a href="<?php echo link_to('', 'index.php'); ?>" title="" id="owncloud"><img src="<?php echo image_path('', 'owncloud-logo-small-white.png'); ?>" alt="ownCloud" /></a>
<?php echo $_['searchbox']?>
<ul id="metanav">
<li><a href="<?php echo link_to('', 'index.php'); ?>?logout=true" title="Log out"><img class='svg' src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a></li>
<li><a href="<?php echo link_to('', 'index.php'); ?>?logout=true" title="<?php echo $l->t('Log out');?>"><img class='svg' src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a></li>
</ul>
</div></header>
......@@ -52,6 +52,7 @@
</ul>
<ul id="settings">
<img id="expand" class='svg' src="<?php echo image_path('', 'actions/settings.svg'); ?>" />
<span style="display:none"><?php echo $l->t('Settings');?></span>
<?php foreach($_['settingsnavigation'] as $entry):?>
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a></li>
<?php if( sizeof( $entry["subnavigation"] )): ?>
......
<?php
$l=new OC_L10N('files');
OC_App::register( array( "order" => 2, "id" => "files", "name" => "Files" ));
OC_App::addNavigationEntry( array( "id" => "files_index", "order" => 1, "href" => OC_Helper::linkTo( "files", "index.php" ), "icon" => OC_Helper::imagePath( "files", "home.png" ), "name" => "Files" ));
OC_App::addNavigationEntry( array( "id" => "files_index", "order" => 1, "href" => OC_Helper::linkTo( "files", "index.php" ), "icon" => OC_Helper::imagePath( "files", "home.png" ), "name" => $l->t("Files") ));
?>
......@@ -168,7 +168,7 @@ FileList={
procesSelection();
FileList.deleteCanceled=false;
FileList.deleteFiles=files;
$('#notification').text('undo deletion');
$('#notification').text(t('files','undo deletion'));
$('#notification').fadeIn();
},
finishDelete:function(ready,sync){
......
......@@ -137,7 +137,7 @@ $(document).ready(function() {
if(files[i].size>0){
var size=files[i].size;
}else{
var size='Pending';
var size=t('files','Pending');
}
FileList.addFile(files[i].name,size,date,true);
}
......@@ -306,8 +306,8 @@ function procesSelection(){
var selectedFolders=selected.filter(function(el){return el.type=='dir'});
if(selectedFiles.length==0 && selectedFolders.length==0){
$('#headerName>span.name').text('Name');
$('#headerSize').text('Size MB');
$('#modified').text('Modified');
$('#headerSize').text(t('files','Size MB'));
$('#modified').text(t('files','Modified'));
$('th').removeClass('multiselect');
$('.selectedActions').hide();
$('thead').removeClass('fixed');
......@@ -336,9 +336,9 @@ function procesSelection(){
var selection='';
if(selectedFolders.length>0){
if(selectedFolders.length==1){
selection+='1 folder';
selection+='1 '+t('files','folder');
}else{
selection+=selectedFolders.length+' folders';
selection+=selectedFolders.length+' '+t('files','folders');
}
if(selectedFiles.length>0){
selection+=' & ';
......@@ -346,9 +346,9 @@ function procesSelection(){
}
if(selectedFiles.length>0){
if(selectedFiles.length==1){
selection+='1 file';
selection+='1 '+t('files','file');
}else{
selection+=selectedFiles.length+' files';
selection+=selectedFiles.length+' '+t('files','files');
}
}
$('#headerName>span.name').text(selection);
......
../appinfo/app.php
../templates/index.php
../templates/part.list.php
../js/filelist.js
../js/files.js
......@@ -8,13 +8,13 @@
<input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
<div class="file_upload_wrapper">
<input type="submit" class="file_upload_filename" value="Upload (max. <?php echo $_['uploadMaxHumanFilesize'];?>)"/>
<input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');?> (max. <?php echo $_['uploadMaxHumanFilesize'];?>)"/>
<input class="file_upload_start" type="file" name='files[]'/>
</div>
<iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>
</form>
<form id="file_newfolder_form">
<input type="text" name="file_newfolder_name" id="file_newfolder_name" value="" placeholder="New Folder" />
<input type="text" name="file_newfolder_name" id="file_newfolder_name" value="" placeholder="<?php echo $l->t('New Folder')?>" />
</form>
</div>
<div id="file_action_panel">
......@@ -29,12 +29,12 @@
<input type="checkbox" id="select_all" />
<span class='name'><?php echo $l->t( 'Name' ); ?></span>
<span class='selectedActions'>
<a href="" title="Download" class="download"><img class='svg' alt="Download" src="../core/img/actions/download.svg" /></a>
<a href="" title="<?php echo $l->t('Download')?>" class="download"><img class='svg' alt="Download" src="../core/img/actions/download.svg" /></a>
<!--<a href="" title="" class="share">Share</a>-->
</span>
</th>
<th id='headerSize'><?php echo $l->t( 'Size MB' ); ?></th>
<th id='headerDate'><span id="modified"><?php echo $l->t( 'Modified' ); ?></span><span class='selectedActions'><a href="" title="Delete" class="delete"><img class='svg' alt="Delete" src="../core/img/actions/delete.svg" /></a></span></th>
<th id='headerDate'><span id="modified"><?php echo $l->t( 'Modified' ); ?></span><span class='selectedActions'><a href="" title="Delete" class="delete"><img class='svg' alt="<?php echo $l->t('Delete')?>" src="../core/img/actions/delete.svg" /></a></span></th>
</tr>
</thead>
<tbody id="fileList">
......@@ -42,14 +42,10 @@
</tbody>
</table>
<div id="uploadsize-message" title="Upload too large">
<div id="uploadsize-message" title="<?php echo $l->t('Upload too large')?>">
<p>
<?php echo $l->t( 'The files you are trying to upload exceed the maximum size for file uploads on this server.' ); ?>
</p>
</div>
<div id="delete-confirm" title="">
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>These items will be permanently deleted and cannot be recovered. Are you sure?</p>
</div>
<span id="file_menu"/>
<span id="emptyfolder" <?php if(count($_['files'])) echo 'style="display:none;"';?>>Nothing in here. Upload something!</span>
<span id="emptyfolder" <?php if(count($_['files'])) echo 'style="display:none;"';?>><?php echo $l->t('Nothing in here. Upload something!')?></span>
<?php foreach($_['files'] as $file):
$simple_file_size = simple_file_size($file['size']);
$simple_size_color = intval(200-$file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey; megabytes*2
......
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-08-09 17:52+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../templates/app.php:17
msgid "read more"
msgstr ""
#: ../templates/app.php:19
msgid "Install"
msgstr ""
#: ../templates/app_noconn.php:1
msgid "Cannot connect to apps repository"
msgstr ""
#: ../templates/apps.php:5 ../templates/users.php:3 ../templates/users.php:7
msgid "Name"
msgstr ""
#: ../templates/apps.php:6
msgid "Modified"
msgstr ""
#: ../templates/system.php:1
msgid "System Settings"
msgstr ""
#: ../templates/users.php:4 ../templates/users.php:14
msgid "Create"
msgstr ""
#: ../templates/users.php:8
msgid "Password"
msgstr ""
#: ../templates/users.php:9
msgid "Groups"
msgstr ""
#: ../templates/users.php:33
msgid "Remove"
msgstr ""
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-08-09 17:52+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../templates/404.php:12
msgid "Cloud not found"
msgstr ""
#: ../templates/installation.php:20
msgid "Create an <strong>admin account</strong>"
msgstr ""
#: ../templates/installation.php:21
msgid "Username"
msgstr ""
#: ../templates/installation.php:22
msgid "Password"
msgstr ""
#: ../templates/installation.php:27
msgid "Configure the database"
msgstr ""
#: ../templates/installation.php:31
msgid "SQLite will be used."
msgstr ""
#: ../templates/installation.php:34
msgid "SQLite"
msgstr ""
#: ../templates/installation.php:41
msgid "MySQL will be used."
msgstr ""
#: ../templates/installation.php:50
msgid "PostgreSQL will be used."
msgstr ""
#: ../templates/installation.php:59
msgid "Database user"
msgstr ""
#: ../templates/installation.php:60
msgid "Database password"
msgstr ""
#: ../templates/installation.php:61
msgid "Database name"
msgstr ""
#: ../templates/installation.php:62
msgid "Host"
msgstr ""
#: ../templates/installation.php:63
msgid "Table prefix"
msgstr ""
#: ../templates/installation.php:70
msgid "Advanced"
msgstr ""
#: ../templates/installation.php:73
msgid "Set data folder"
msgstr ""
#: ../templates/installation.php:74
msgid "Data folder"
msgstr ""
#: ../templates/installation.php:77
msgid "Finish setup"
msgstr ""
#: ../templates/layout.guest.php:38
msgid ""
"<a href=\"http://owncloud.org/\">ownCloud</a> is a personal cloud which runs "
"on your own server.</p>"
msgstr ""
#: ../templates/login.php:4
msgid "Login failed!"
msgstr ""
#: ../templates/login.php:9 ../templates/login.php:13
msgid "remember"
msgstr ""
#: ../templates/logout.php:1
msgid "You are logged out."
msgstr ""
#: ../templates/part.pagenavi.php:6
msgid "prev"
msgstr ""
#: ../templates/part.pagenavi.php:26
msgid "next"
msgstr ""
#: ../../lib/app.php:204
msgid "Users"
msgstr ""
#: ../../lib/app.php:205
msgid "Apps"
msgstr ""
#: ../../lib/app.php:206
msgid "Files"
msgstr ""
#: ../../lib/app.php:209
msgid "Help"
msgstr ""
#: ../../lib/app.php:210
msgid "Personal"
msgstr ""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment