4
* ownCloud - ajax frontend
7
* @copyright 2011 Jakob Sack kde@jakobsack.de
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.
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.
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/>.
24
$app = isset($_POST["app"]) ? $_POST["app"] : "";
26
$app = OC_App::cleanAppId($app);
28
$l = OC_L10N::get( $app );
30
OC_JSON::success(array('data' => $l->getTranslations(), 'plural_form' => $l->getPluralFormString()));