[GH-ISSUE #192] Some language strings are missing. And other... #137

Closed
opened 2026-03-02 15:56:06 +03:00 by kerem · 4 comments
Owner

Originally created by @EV-soft on GitHub (Jul 6, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/192

I have made some changes and adjustments that can inspire a future version.
Here is a list of the topics:

Table: Zebra-background on rows
Added Color gold on folder icon
Show Folder size - custom activating in settings {search: $calc_folder}
New translate system: scann for UI-strings with prefix: '@_' 
Added detailed explanation  {search:   INFO }
Danish language  {se Updated translation.json "name": "Dansk / Danish" }
Hide Permissions and Owner cols in file-listing - custom activating in settings  {search: $hide_Cols }
Add custom icon in header  {search: $cust_icon }    
Align right in column 'Size' (alignment!)
Change byte unit 'B' to ' B' (alignment!)
Updated file: translation.json (english: see function createLngTable() )
Extended the translate system: add errormess and other UI-strings that was missing {search: '@_ } (52  strings => 200+ strings)
Custom title-tip: data-title= "TIP"
Changed filesize output, for correct sortion by size
Changed filetime output, for correct sortion by time: $datetime_format = 'Y-m-d H:i';
Unresolved: link to parent should stay on top on sorting
User setting for AdvancedEditor (mode and) theme
Added file-name i bread-crumb, so you can see what you are editing.

Some of them concern issues #184 #185 and #188
See and test files in this zip:
TFM-EV-soft.zip

Originally created by @EV-soft on GitHub (Jul 6, 2019). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/192 I have made some changes and adjustments that can inspire a future version. Here is a list of the topics: ``` Table: Zebra-background on rows Added Color gold on folder icon Show Folder size - custom activating in settings {search: $calc_folder} New translate system: scann for UI-strings with prefix: '@_' Added detailed explanation {search:   INFO } Danish language {se Updated translation.json "name": "Dansk / Danish" } Hide Permissions and Owner cols in file-listing - custom activating in settings {search: $hide_Cols } Add custom icon in header {search: $cust_icon } Align right in column 'Size' (alignment!) Change byte unit 'B' to ' B' (alignment!) Updated file: translation.json (english: see function createLngTable() ) Extended the translate system: add errormess and other UI-strings that was missing {search: '@_ } (52 strings => 200+ strings) Custom title-tip: data-title= "TIP" Changed filesize output, for correct sortion by size Changed filetime output, for correct sortion by time: $datetime_format = 'Y-m-d H:i'; Unresolved: link to parent should stay on top on sorting User setting for AdvancedEditor (mode and) theme Added file-name i bread-crumb, so you can see what you are editing. ``` Some of them concern issues #184 #185 and #188 See and test files in this zip: [TFM-EV-soft.zip](https://github.com/prasathmani/tinyfilemanager/files/3364805/TFM-EV-soft.zip)
kerem 2026-03-02 15:56:06 +03:00
Author
Owner

@prasathmani commented on GitHub (Jul 7, 2019):

Let me check and add your valuable features.

<!-- gh-comment-id:509000715 --> @prasathmani commented on GitHub (Jul 7, 2019): Let me check and add your valuable features.
Author
Owner

@EV-soft commented on GitHub (Jul 9, 2019):

Another suggestion for improvement,
so save configuration also works when the file is located in subfolder.

function save()
    {
        //global $root_path;
        //$fm_file = $root_path.$_SERVER["PHP_SELF"];
        //$fm_file = __FILE__;
        $var_name = '$CONFIG';
        $var_value = var_export(json_encode($this->data), true);
        $config_string = "<?php" . chr(13) . chr(10) . "//".trans('@_Default Configuration').chr(13) . chr(10)."$var_name = $var_value;" . chr(13) . chr(10);
        $lines = file(__FILE__);
        if ($fh = @fopen(__FILE__, "w")) {
            @fputs($fh, $config_string, strlen($config_string));
            for ($x = 3; $x < count($lines); $x++) {
                @fputs($fh, $lines[$x], strlen($lines[$x]));
            }
            @fclose($fh);
        }
        else { fm_set_msg('@_Configuration was not saved.', 'error');   fm_show_message(); }
    }
}
<!-- gh-comment-id:509509030 --> @EV-soft commented on GitHub (Jul 9, 2019): Another suggestion for improvement, so save configuration also works when the file is located in subfolder. ``` function save() { //global $root_path; //$fm_file = $root_path.$_SERVER["PHP_SELF"]; //$fm_file = __FILE__; $var_name = '$CONFIG'; $var_value = var_export(json_encode($this->data), true); $config_string = "<?php" . chr(13) . chr(10) . "//".trans('@_Default Configuration').chr(13) . chr(10)."$var_name = $var_value;" . chr(13) . chr(10); $lines = file(__FILE__); if ($fh = @fopen(__FILE__, "w")) { @fputs($fh, $config_string, strlen($config_string)); for ($x = 3; $x < count($lines); $x++) { @fputs($fh, $lines[$x], strlen($lines[$x])); } @fclose($fh); } else { fm_set_msg('@_Configuration was not saved.', 'error'); fm_show_message(); } } } ```
Author
Owner

@EV-soft commented on GitHub (Jul 13, 2019):

I have now also added the possibility that the user himself can add missing translations (not yet working). Go to settings.
You can see my demo here:
https://www.sky-box.dk/tinyFM/TFM_EV-soft.php
and get our copy. (search for function LanguageList)

<!-- gh-comment-id:511118009 --> @EV-soft commented on GitHub (Jul 13, 2019): I have now also added the possibility that the user himself can add missing translations (not yet working). Go to settings. You can see my demo here: https://www.sky-box.dk/tinyFM/TFM_EV-soft.php and get our copy. (search for function LanguageList)
Author
Owner

@prasathmani commented on GitHub (Jul 23, 2019):

Added few feature from your suggestion, thanks for your great inputs. @EV-soft

<!-- gh-comment-id:514089687 --> @prasathmani commented on GitHub (Jul 23, 2019): Added few feature from your suggestion, thanks for your great inputs. @EV-soft
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#137
No description provided.