diff --git a/src/lang/ar-ye.json b/src/lang/ar-ye.json index b67c9afd4..45d457eba 100644 --- a/src/lang/ar-ye.json +++ b/src/lang/ar-ye.json @@ -383,5 +383,6 @@ "newly_added": "أضاف حديثا", "top_rated": "أعلى تصنيف", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/be-by.json b/src/lang/be-by.json index d81f0c42e..14cf16b24 100644 --- a/src/lang/be-by.json +++ b/src/lang/be-by.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/bn-bd.json b/src/lang/bn-bd.json index a8ed075c1..66212788f 100644 --- a/src/lang/bn-bd.json +++ b/src/lang/bn-bd.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/cs-cz.json b/src/lang/cs-cz.json index 8fb64d0f0..a7cb0c476 100644 --- a/src/lang/cs-cz.json +++ b/src/lang/cs-cz.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/de-de.json b/src/lang/de-de.json index 7efe52ad6..c12bad572 100644 --- a/src/lang/de-de.json +++ b/src/lang/de-de.json @@ -383,5 +383,6 @@ "newly_added": "Neu Hinzugefügte", "top_rated": "Am besten Bewertete", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/en-us.json b/src/lang/en-us.json index 8d910b585..021de328d 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -384,5 +384,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/es-sv.json b/src/lang/es-sv.json index 031a933de..58ad844a0 100644 --- a/src/lang/es-sv.json +++ b/src/lang/es-sv.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/fr-fr.json b/src/lang/fr-fr.json index b460da0ff..b33e1b4cd 100644 --- a/src/lang/fr-fr.json +++ b/src/lang/fr-fr.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/hi-in.json b/src/lang/hi-in.json index b72bebfc3..a83d19e1c 100644 --- a/src/lang/hi-in.json +++ b/src/lang/hi-in.json @@ -384,5 +384,6 @@ "newly_added": "नया नया़ा", "top_rated": "टॉप रेटेड", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/hu-hu.json b/src/lang/hu-hu.json index dbcba144a..3afbab31f 100644 --- a/src/lang/hu-hu.json +++ b/src/lang/hu-hu.json @@ -383,5 +383,6 @@ "newly_added": "Újonnan hozzáadott", "top_rated": "Legjobbra értékelt", "rename not supported": "A Termux könyvtár átnevezése nem támogatott ", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/id-id.json b/src/lang/id-id.json index 841788dbb..28e2787d4 100644 --- a/src/lang/id-id.json +++ b/src/lang/id-id.json @@ -385,5 +385,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/ir-fa.json b/src/lang/ir-fa.json index bd140dd9f..8da7098c7 100644 --- a/src/lang/ir-fa.json +++ b/src/lang/ir-fa.json @@ -384,5 +384,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/it-it.json b/src/lang/it-it.json index e4116cc09..18696cab2 100644 --- a/src/lang/it-it.json +++ b/src/lang/it-it.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/ja-jp.json b/src/lang/ja-jp.json index 7dd960795..8ba84559f 100644 --- a/src/lang/ja-jp.json +++ b/src/lang/ja-jp.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/ko-kr.json b/src/lang/ko-kr.json index 4e37e2358..d6ea710c3 100644 --- a/src/lang/ko-kr.json +++ b/src/lang/ko-kr.json @@ -383,5 +383,6 @@ "newly_added": "새로 추가되었습니다", "top_rated": "최고 평점", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/ml-in.json b/src/lang/ml-in.json index 2335cf483..7a23a2606 100644 --- a/src/lang/ml-in.json +++ b/src/lang/ml-in.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/mm-unicode.json b/src/lang/mm-unicode.json index ef10df40f..f97576002 100644 --- a/src/lang/mm-unicode.json +++ b/src/lang/mm-unicode.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/mm-zawgyi.json b/src/lang/mm-zawgyi.json index b50bfb42e..cbc7125fc 100644 --- a/src/lang/mm-zawgyi.json +++ b/src/lang/mm-zawgyi.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/pl-pl.json b/src/lang/pl-pl.json index 02b62077a..ae53b2d50 100644 --- a/src/lang/pl-pl.json +++ b/src/lang/pl-pl.json @@ -383,5 +383,6 @@ "newly_added": "Ostatnio dodane", "top_rated": "Najwyżej oceniane", "rename not supported": "Zmiana nazwy katalogu w termux nie jest obsługiwana", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/pt-br.json b/src/lang/pt-br.json index 5985393ea..867bc44f9 100644 --- a/src/lang/pt-br.json +++ b/src/lang/pt-br.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/pu-in.json b/src/lang/pu-in.json index 35bd676b6..2fb8ba17a 100644 --- a/src/lang/pu-in.json +++ b/src/lang/pu-in.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/ru-ru.json b/src/lang/ru-ru.json index ef43a3835..9a5d31897 100644 --- a/src/lang/ru-ru.json +++ b/src/lang/ru-ru.json @@ -384,5 +384,6 @@ "newly_added": "Новые", "top_rated": "С высокой оценкой", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/tl-ph.json b/src/lang/tl-ph.json index 4c9af6f38..76399ed09 100644 --- a/src/lang/tl-ph.json +++ b/src/lang/tl-ph.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/tr-tr.json b/src/lang/tr-tr.json index 152d510c6..9c23347d5 100644 --- a/src/lang/tr-tr.json +++ b/src/lang/tr-tr.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/uk-ua.json b/src/lang/uk-ua.json index e944033ad..e7f280293 100644 --- a/src/lang/uk-ua.json +++ b/src/lang/uk-ua.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/uz-uz.json b/src/lang/uz-uz.json index 1ce49d5a8..91007f504 100644 --- a/src/lang/uz-uz.json +++ b/src/lang/uz-uz.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/vi-vn.json b/src/lang/vi-vn.json index 8cadb4f3c..f0a4c02a5 100644 --- a/src/lang/vi-vn.json +++ b/src/lang/vi-vn.json @@ -384,5 +384,6 @@ "newly_added": "Mới được thêm vào", "top_rated": "Đánh giá cao nhất", "rename not supported": "Đổi tên trên thư mục Termux không được hỗ trợ", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index 68829a103..99689903a 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -383,5 +383,6 @@ "newly_added": "最近上架", "top_rated": "最多好评", "rename not supported": "不支持修改 Termux 内的文件夹名", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/zh-hant.json b/src/lang/zh-hant.json index 1988e2cff..6f99ce91a 100644 --- a/src/lang/zh-hant.json +++ b/src/lang/zh-hant.json @@ -383,5 +383,6 @@ "newly_added": "最近上架", "top_rated": "最多好評", "rename not supported": "不支持修改 Termux 內的文件夾名", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/lang/zh-tw.json b/src/lang/zh-tw.json index 21bc6ccb9..40d3fb0a3 100644 --- a/src/lang/zh-tw.json +++ b/src/lang/zh-tw.json @@ -383,5 +383,6 @@ "newly_added": "Newly Added", "top_rated": "Top Rated", "rename not supported": "Rename on termux dir isn't supported", - "compress": "Compress" + "compress": "Compress", + "copy uri": "Copy Uri" } diff --git a/src/pages/fileBrowser/fileBrowser.js b/src/pages/fileBrowser/fileBrowser.js index 6dbe77ab6..8b6441b23 100644 --- a/src/pages/fileBrowser/fileBrowser.js +++ b/src/pages/fileBrowser/fileBrowser.js @@ -547,6 +547,10 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) { options.push(["info", strings.info, "info"]); } + if (currentDir.url !== "/" && url) { + options.push(["copyuri", strings["copy uri"], "copy"]); + } + const option = await select(strings["select"], options); switch (option) { case "delete": { @@ -589,6 +593,11 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) { case "info": acode.exec("file-info", url); break; + + case "copyuri": + navigator.clipboard.writeText(url); + alert(strings.success, strings["copied to clipboard"]); + break; } }