[GH-ISSUE #74] addition of a translation system #57

Closed
opened 2026-03-02 15:55:21 +03:00 by kerem · 7 comments
Owner

Originally created by @simon511000 on GitHub (Oct 18, 2018).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/74

It would be really cool to be able to add translations to tinyfilemanager

Originally created by @simon511000 on GitHub (Oct 18, 2018). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/74 It would be really cool to be able to add translations to tinyfilemanager
kerem 2026-03-02 15:55:21 +03:00
Author
Owner

@ghost commented on GitHub (Oct 19, 2018):

@simon511000 Multiple language option was there in initial releases, later it was removed due to dependencies with many language files.

<!-- gh-comment-id:431242983 --> @ghost commented on GitHub (Oct 19, 2018): @simon511000 Multiple language option was there in initial releases, later it was removed due to dependencies with many language files.
Author
Owner

@simon511000 commented on GitHub (Oct 19, 2018):

I was thinking more about storing languages in arrays. => no dependencies, no other file.
What do you think ?

<!-- gh-comment-id:431244933 --> @simon511000 commented on GitHub (Oct 19, 2018): I was thinking more about storing languages in arrays. => no dependencies, no other file. What do you think ?
Author
Owner

@simon511000 commented on GitHub (Oct 19, 2018):

like

<?php
$lang = "fr";
$en = ["home"=>"home","login"=>"login"];
$fr = ["home"=>"accueil","login"=>"identifiant"];

switch($lang){
  case "fr":
    $translate = $fr;
  break;
  default:
    $translate = $en;
}

echo $translate["login"];
echo $translate["home"];
<!-- gh-comment-id:431247402 --> @simon511000 commented on GitHub (Oct 19, 2018): like ``` <?php $lang = "fr"; $en = ["home"=>"home","login"=>"login"]; $fr = ["home"=>"accueil","login"=>"identifiant"]; switch($lang){ case "fr": $translate = $fr; break; default: $translate = $en; } echo $translate["login"]; echo $translate["home"]; ```
Author
Owner

@prasathmani commented on GitHub (Oct 19, 2018):

thanks for quick suggestion, will try in feature releases.

<!-- gh-comment-id:431247977 --> @prasathmani commented on GitHub (Oct 19, 2018): thanks for quick suggestion, will try in feature releases.
Author
Owner

@simon511000 commented on GitHub (Oct 19, 2018):

nice thank you very much

<!-- gh-comment-id:431250243 --> @simon511000 commented on GitHub (Oct 19, 2018): nice thank you very much
Author
Owner

@prasathmani commented on GitHub (Nov 26, 2018):

@simon511000 multi language option available now, check the latest release

<!-- gh-comment-id:441748734 --> @prasathmani commented on GitHub (Nov 26, 2018): @simon511000 multi language option available now, check the latest [release](https://github.com/prasathmani/tinyfilemanager/releases)
Author
Owner

@simon511000 commented on GitHub (Nov 26, 2018):

Niiiice Thank you very much :D

<!-- gh-comment-id:441761735 --> @simon511000 commented on GitHub (Nov 26, 2018): Niiiice Thank you very much :D
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#57
No description provided.