This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use JText to translate strings (#100)
* Use JText to translate strings * Change strings in modal
- Loading branch information
1 parent
f767138
commit 2cd816b
Showing
9 changed files
with
1,906 additions
and
1,754 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...istrator/components/com_media/resources/scripts/components/modals/create-folder-modal.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
administrator/components/com_media/resources/scripts/plugins/translate.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Translate plugin | ||
*/ | ||
|
||
let Translate = {}; | ||
|
||
Translate.install = function (Vue, options) { | ||
Vue.mixin({ | ||
methods: { | ||
translate: function (key) { | ||
return Joomla.JText._(key, key); | ||
} | ||
} | ||
}) | ||
} | ||
|
||
export default Translate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
administrator/components/com_media/views/media/tmpl/default_texts.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_media | ||
* | ||
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
defined('_JEXEC') or die; | ||
|
||
JText::script('COM_MEDIA_CREATE_FOLDER', true); | ||
JText::script('COM_MEDIA_CREATE_NEW_FOLDER', true); | ||
JText::script('COM_MEDIA_FOLDER', true); | ||
JText::script('COM_MEDIA_NEW', true); | ||
JText::script('COM_MEDIA_UPLOAD_FILE', true); | ||
JText::script('COM_MEDIA_UPLOAD_FOLDER', true); | ||
JText::script('JCANCEL', true); | ||
JText::script('JAPPLY', true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.