added 'add external plugin' button to IITC plugins preference. ensures that the scripts are always copied to the correct folder.

This commit is contained in:
Philipp Schaefer
2014-02-12 14:53:31 +01:00
parent 5e723ca328
commit 2054b5f790
8 changed files with 93 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menu_plugins_add"
android:icon="@drawable/ic_action_new"
android:orderInCategory="10"
android:showAsAction="ifRoom|collapseActionView"
android:title="@string/menu_plugins_add"/>
</menu>

View File

@ -86,9 +86,8 @@
<string name="notice_extplugins">
<![CDATA[Hint:<br><br>
IITC Mobile is able to load external plugins too!<br><br>
• create <b>%1$s</b><br>
• move *.user.js files there<br>
• plugins should be listed above the official plugins]]>
Add them by clicking the (+) icon at the top right.
The plugin files have to end with \'.user.js\' and are copied to <b>%1$s</b><br>]]>
</string>
<string name="notice_sharing">
<![CDATA[With <em>Share portal</em> you can:<br>
@ -162,6 +161,7 @@
<string name="menu_clear_cookies">Clear Cookies</string>
<string name="menu_search">Search</string>
<string name="menu_debug">Debug</string>
<string name="menu_plugins_add">Add external plugins</string>
<string name="choose_account_to_login">Choose account to login</string>
<string name="login_failed">Login failed.</string>
<string name="search_hint">Search Locations</string>