Skip to content

Commit

Permalink
Some updates
Browse files Browse the repository at this point in the history
* Fix bug of compiling executable file with French language
* Reorder to language constants on language header files
* Update comment for LANGUAGE constant on config.h

Signed-off-by: Ercan Ersoy <[email protected]>
  • Loading branch information
ercanersoy committed Jan 12, 2021
1 parent 0372271 commit 4f26e4c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Language Configure

#define LANGUAGE EN // EN or TR
#define LANGUAGE EN // EN or FR or TR

// Commands' Configures

Expand Down
2 changes: 1 addition & 1 deletion lang/fr.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Written by Berki Yenign.
*/

#define FR 1
#define FR 2

#if LANGUAGE == FR
#define STRING_CANNOT_COPY "impossible de copier %s.\r\n"
Expand Down
2 changes: 1 addition & 1 deletion lang/tr.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Written by Ercan Ersoy.
*/

#define TR 2
#define TR 3

#if LANGUAGE == TR
#define STRING_CANNOT_COPY "%s kopyalanamyor.\r\n"
Expand Down
1 change: 1 addition & 0 deletions minibox.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <time.h>
#include "config.h"
#include "lang\en.h"
#include "lang\fr.h"
#include "lang\tr.h"

// Command functions prototypes
Expand Down

0 comments on commit 4f26e4c

Please sign in to comment.