~pvigo/+junk/owncloud-14.04

« back to all changes in this revision

Viewing changes to share/owncloud/core/ajax/translations.php

  • Committer: Pablo Vigo
  • Date: 2014-12-15 13:36:46 UTC
  • Revision ID: pvigo@xtec.cat-20141215133646-7d6it90e1dbsijc2
2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
* ownCloud - ajax frontend
 
5
*
 
6
* @author Jakob Sack
 
7
* @copyright 2011 Jakob Sack kde@jakobsack.de
 
8
*
 
9
* This library is free software; you can redistribute it and/or
 
10
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
 
11
* License as published by the Free Software Foundation; either
 
12
* version 3 of the License, or any later version.
 
13
*
 
14
* This library is distributed in the hope that it will be useful,
 
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
 
18
*
 
19
* You should have received a copy of the GNU Affero General Public
 
20
* License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
21
*
 
22
*/
 
23
 
 
24
$app = isset($_POST["app"]) ? $_POST["app"] : "";
 
25
 
 
26
$app = OC_App::cleanAppId($app);
 
27
 
 
28
$l = OC_L10N::get( $app );
 
29
 
 
30
OC_JSON::success(array('data' => $l->getTranslations(), 'plural_form' => $l->getPluralFormString()));