]> source.dussan.org Git - nextcloud-server.git/commitdiff
make more strings translatable
authorRobin Appelman <icewind1991@gmail.com>
Tue, 9 Aug 2011 15:54:02 +0000 (17:54 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Wed, 10 Aug 2011 12:03:54 +0000 (14:03 +0200)
25 files changed:
admin/templates/users.php
apps/media/appinfo/app.php
apps/media/js/collection.js
apps/media/js/music.js
apps/media/js/playlist.js
apps/media/js/scanner.js
apps/media/l10n/xgettextfiles [new file with mode: 0644]
apps/media/templates/music.php
core/css/styles.css
core/js/js.js
core/l10n/xgettextfiles [new file with mode: 0644]
core/templates/layout.user.php
files/appinfo/app.php
files/js/filelist.js
files/js/files.js
files/l10n/xgettextfiles [new file with mode: 0644]
files/templates/index.php
files/templates/part.list.php
l10n/templates/admin.pot [new file with mode: 0644]
l10n/templates/core.pot [new file with mode: 0644]
l10n/templates/files.pot [new file with mode: 0644]
l10n/templates/help.pot [new file with mode: 0644]
l10n/templates/settings.pot [new file with mode: 0644]
lib/app.php
settings/templates/index.php

index 8e34c908fcdcefc660903f3b796078e2e8674c63..00daf4c52638676096763b838e0f29ace2fb7915 100644 (file)
@@ -1,17 +1,17 @@
 <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">
                                <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>
index bc80536a9696fc8bd525aad235c9ae8032bba0e1..ebd360eccb3665732e1c79601684f36af650399b 100644 (file)
  *
  */
 
+$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') ));
 ?>
index df7b79e332dcb0616c53de899473271c61af0a65..e49024973fa844691407ab52b175bf1b8d8d1d7f 100644 (file)
@@ -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');
                                        }
                                        
index 7034824cad8960456543717adc5f36aed213e596..c04c579d1ca04805d164a3f16b1d8f9c4b1cce98 100644 (file)
@@ -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();
index 636ae29c5558025df9d72b086eebf0d090c7bec3..ad6c63a0333de86ff2d8ab8daef88a820c8f7ec8 100644 (file)
@@ -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');
index 165f86d05f5177c053df3c618649e64963ddf4e7..0ebf408e702070d809bded61874aee436090dd3c 100644 (file)
@@ -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 (file)
index 0000000..39a310a
--- /dev/null
@@ -0,0 +1,6 @@
+../appinfo/app.php
+../templates/music.php
+../js/scanner.js
+../js/collection.js
+../js/music.js
+../js/playlist.js
index 5d0b0b6f0c4150a87e34ba73257f7f6ea869d3f7..d103e10b7502bfb27cf1f8487b8656723bdde202 100644 (file)
 <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>
 
 <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">
index 4a9fe01679679b932bf5d285d707e7bc09ce0027..da64adbd14e4ea5c26a61f5d26cece40710011d8 100644 (file)
@@ -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; }
index 952c1b86ea988aeeddaf52b773b33caad99834f2..aef3ad1accaaff3b2f71c45260daf90a6d3658cb 100644 (file)
@@ -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();
+       })
 });
 
 
diff --git a/core/l10n/xgettextfiles b/core/l10n/xgettextfiles
new file mode 100644 (file)
index 0000000..932042b
--- /dev/null
@@ -0,0 +1,8 @@
+../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
index 2dce647873fce93c2bacc29abd9661fb39013097..3b065ef6ede453017a894f0f4243d01507bf07d8 100644 (file)
@@ -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"] )): ?>
index a4cec3d6ec2812590b72209c183dd788966b04bd..94cd43ab0a2f9dac1ddba0b9a9a54cf6c0affa92 100644 (file)
@@ -1,7 +1,9 @@
 <?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") ));
 
 ?>
index ce9595d3495716ca0d91dc9840020b18f9c21452..4a34385fd0bdbd55315da5b0619514227eff7a27 100644 (file)
@@ -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){
index 49e7cecd090fca236f24156e2dad85c61d95c901..519d48a523dfefb9ecf9cc985af4703d931714a5 100644 (file)
@@ -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);
diff --git a/files/l10n/xgettextfiles b/files/l10n/xgettextfiles
new file mode 100644 (file)
index 0000000..9e22680
--- /dev/null
@@ -0,0 +1,5 @@
+../appinfo/app.php
+../templates/index.php
+../templates/part.list.php
+../js/filelist.js
+../js/files.js
index bb58f5e754ac3df70638bfa58042fa708ebc497f..27af6665dfe2f11baaeeec5e2e59247a3c0d22d3 100644 (file)
@@ -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">
                                <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">
        </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"/>
index 5051c19949a3378f127c88dd0b2300980292f081..8b3823f391bea340eefe6b2e53664ed29afa6f70 100644 (file)
@@ -1,4 +1,4 @@
-               <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
diff --git a/l10n/templates/admin.pot b/l10n/templates/admin.pot
new file mode 100644 (file)
index 0000000..e28b1eb
--- /dev/null
@@ -0,0 +1,58 @@
+# 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 ""
diff --git a/l10n/templates/core.pot b/l10n/templates/core.pot
new file mode 100644 (file)
index 0000000..7189eb4
--- /dev/null
@@ -0,0 +1,136 @@
+# 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 ""
diff --git a/l10n/templates/files.pot b/l10n/templates/files.pot
new file mode 100644 (file)
index 0000000..271ca0f
--- /dev/null
@@ -0,0 +1,64 @@
+# 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"
+
+#: ../appinfo/app.php:7
+msgid "Files"
+msgstr ""
+
+#: ../templates/index.php:11
+msgid "Upload"
+msgstr ""
+
+#: ../templates/index.php:17
+msgid "New Folder"
+msgstr ""
+
+#: ../templates/index.php:30
+msgid "Name"
+msgstr ""
+
+#: ../templates/index.php:32
+msgid "Download"
+msgstr ""
+
+#: ../templates/index.php:36
+msgid "Size MB"
+msgstr ""
+
+#: ../templates/index.php:37
+msgid "Modified"
+msgstr ""
+
+#: ../templates/index.php:37
+msgid "Delete"
+msgstr ""
+
+#: ../templates/index.php:45
+msgid "Upload too large"
+msgstr ""
+
+#: ../templates/index.php:47
+msgid ""
+"The files you are trying to upload exceed the maximum size for file uploads "
+"on this server."
+msgstr ""
+
+#: ../templates/part.list.php:1
+msgid "Nothing in here. Upload something!"
+msgstr ""
diff --git a/l10n/templates/help.pot b/l10n/templates/help.pot
new file mode 100644 (file)
index 0000000..0e24e1c
--- /dev/null
@@ -0,0 +1,22 @@
+# 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/index.php:21
+msgid "Ask a question"
+msgstr ""
diff --git a/l10n/templates/settings.pot b/l10n/templates/settings.pot
new file mode 100644 (file)
index 0000000..dc438e4
--- /dev/null
@@ -0,0 +1,86 @@
+# 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/index.php:3
+msgid "Account information"
+msgstr ""
+
+#: ../templates/index.php:5
+msgid "You're currently using"
+msgstr ""
+
+#: ../templates/index.php:5
+msgid "of your"
+msgstr ""
+
+#: ../templates/index.php:5
+msgid "space"
+msgstr ""
+
+#: ../templates/index.php:11 ../templates/index.php:17
+msgid "Change Password"
+msgstr ""
+
+#: ../templates/index.php:12
+msgid "Your password got changed"
+msgstr ""
+
+#: ../templates/index.php:14
+msgid "Old password"
+msgstr ""
+
+#: ../templates/index.php:15
+msgid "New password"
+msgstr ""
+
+#: ../templates/index.php:16
+msgid "show"
+msgstr ""
+
+#: ../templates/index.php:23
+msgid "Language"
+msgstr ""
+
+#: ../ajax/changepassword.php:13 ../ajax/setlanguage.php:13
+msgid "Authentication error"
+msgstr ""
+
+#: ../ajax/changepassword.php:19
+msgid "You have to enter the old and the new password!"
+msgstr ""
+
+#: ../ajax/changepassword.php:25
+msgid "Your old password is wrong!"
+msgstr ""
+
+#: ../ajax/changepassword.php:31
+msgid "Password changed"
+msgstr ""
+
+#: ../ajax/changepassword.php:34
+msgid "Unable to change password"
+msgstr ""
+
+#: ../ajax/setlanguage.php:21
+msgid "Language changed"
+msgstr ""
+
+#: ../ajax/setlanguage.php:23
+msgid "Invalid request"
+msgstr ""
index f1363c8af5ad321430359f731f535562ceb5e079..411c08cbe5b42db68a99599370d57c1026081920 100644 (file)
@@ -199,14 +199,15 @@ class OC_App{
         * entries are sorted by the key 'order' ascending.
         */
        public static function getSettingsNavigation(){
+               $l=new OC_L10N('core');
                $admin=array(
-                       array( "id" => "core_users", "order" => 2, "href" => OC_Helper::linkTo( "admin", "users.php" ), "name" => "Users", "icon" => OC_Helper::imagePath( "admin", "users.png" )),
-                       array( "id" => "core_apps", "order" => 3, "href" => OC_Helper::linkTo( "admin", "apps.php?installed" ), "name" => "Apps", "icon" => OC_Helper::imagePath( "admin", "apps.png" )),
-                       array( "id" => "files_administration", "order" => 3, "href" => OC_Helper::linkTo( "files", "admin.php" ), "name" => "Files", "icon" => OC_Helper::imagePath( "files", "folder.png" )),
+                       array( "id" => "core_users", "order" => 2, "href" => OC_Helper::linkTo( "admin", "users.php" ), "name" => $l->t("Users"), "icon" => OC_Helper::imagePath( "admin", "users.png" )),
+                       array( "id" => "core_apps", "order" => 3, "href" => OC_Helper::linkTo( "admin", "apps.php?installed" ), "name" => $l->t("Apps"), "icon" => OC_Helper::imagePath( "admin", "apps.png" )),
+                       array( "id" => "files_administration", "order" => 3, "href" => OC_Helper::linkTo( "files", "admin.php" ), "name" => $l->t("Files"), "icon" => OC_Helper::imagePath( "files", "folder.png" )),
                );
                $settings=array(
-                       array( "id" => "help", "order" => 1000, "href" => OC_Helper::linkTo( "help", "index.php" ), "name" => "Help", "icon" => OC_Helper::imagePath( "help", "help.png" )),
-                       array( "id" => "settings", "order" => 1, "href" => OC_Helper::linkTo( "settings", "index.php" ), "name" => "Personal", "icon" => OC_Helper::imagePath( "settings", "personal.png" ))
+                       array( "id" => "help", "order" => 1000, "href" => OC_Helper::linkTo( "help", "index.php" ), "name" => $l->t("Help"), "icon" => OC_Helper::imagePath( "help", "help.png" )),
+                       array( "id" => "settings", "order" => 1, "href" => OC_Helper::linkTo( "settings", "index.php" ), "name" => $l->t("Personal"), "icon" => OC_Helper::imagePath( "settings", "personal.png" ))
                );
                if( OC_Group::inGroup( $_SESSION["user_id"], "admin" )){
                        $settings=array_merge($admin,$settings);
index 0b5a14626fe420c71805c52f4630dc315943818f..48c3f542018ed257a0b15a31ea897c1f3c233b43 100644 (file)
@@ -14,7 +14,7 @@
                <input type="password" id="pass1" name="oldpassword" placeholder="<?php echo $l->t( 'Old password' );?>" />
                <input type="password" id="pass2" name="password" placeholder="<?php echo $l->t( 'New password' );?>" data-typetoggle="#show" />
                <input type="checkbox" id="show" name="show" /><label for="show"><?php echo $l->t( 'show' );?></label>
-               <input id="passwordbutton" type="submit" value="Change password" />
+               <input id="passwordbutton" type="submit" value="<?php echo $l->t( 'Change Password' );?>" />
        </fieldset>
 </form>