]> granicus.if.org Git - multimarkdown/commitdiff
CHANGED: Rename internationalization file
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Thu, 19 Jan 2017 22:19:26 +0000 (17:19 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Thu, 19 Jan 2017 22:19:26 +0000 (17:19 -0500)
src/html.c
src/i18n.h [moved from src/localization.h with 82% similarity]

index 57d4dfef782b8f7beb8466580814d54398b3ceb7..37f758a95c5a537b6e2335a6e6f52e7a25552d16 100644 (file)
@@ -60,7 +60,7 @@
 #include "d_string.h"
 #include "html.h"
 #include "libMultiMarkdown.h"
-#include "localization.h"
+#include "i18n.h"
 #include "parser.h"
 #include "token.h"
 #include "scanners.h"
similarity index 82%
rename from src/localization.h
rename to src/i18n.h
index 9f8725975d6945a7bbf78f922e333d5cd6449ae0..a6f09af6fa65907d445c42634e2375f1f8c982d1 100644 (file)
@@ -2,9 +2,9 @@
 
        MultiMarkdown 6 -- MultiMarkdown - lightweight markup processor.
 
-       @file localization.h
+       @file i18n.h
 
-       @brief 
+       @brief Provide rudimentary ability to provide translation string functionality.
 
 
        @author Fletcher T. Penney
@@ -19,8 +19,8 @@
 */
 
 
-#ifndef LOCALIZATION_MULTIMARKDOWN_6_H
-#define LOCALIZATION_MULTIMARKDOWN_6_H
+#ifndef I18N_MULTIMARKDOWN_6_H
+#define I18N_MULTIMARKDOWN_6_H
 
 
 #include <string.h>
 #define kNumberOfStrings 3
 #define kLanguage 0
 
-//#define LOCALIZATION_DISABLED
+//#define I18N_DISABLED
 
 
 // Hash function from http://lolengine.net/blog/2011/12/20/cpp-constant-string-hash
 // via http://stackoverflow.com/questions/2826559/compile-time-preprocessor-hashing-of-string
 
 
-#ifdef LOCALIZATION_DISABLED
+#ifdef I18N_DISABLED
        #define LC(x) x
 #else
        #define H1(s,i,x)   (x*65599u+(uint8_t)s[(i)<strlen(s)?strlen(s)-1-(i):strlen(s)])
        //#define LC(x) TranslateTest(__COUNTER__, __FILE__, __LINE__, __FUNCTION__ , x)
 
 static const char * lc_lookup[kNumberOfLanguages * kNumberOfStrings] = {
-       "return to body",
-       "return to body",
+       "return to body",                               // English
+       "return to body",                               // Spanish
 
-       "see footnote",
-       "Ver nota de pie",
+       "see footnote",                                 // English
+       "Ver nota de pie",                              // Spanish
 
-       "see citation",
-       "see citation",
+       "see citation",                                 // English
+       "see citation",                                 // Spanish
 };