summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.lang.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.lang.code.tex')
-rw-r--r--Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.lang.code.tex13
1 files changed, 6 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.lang.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.lang.code.tex
index b6eb32d2383..a087398981e 100644
--- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.lang.code.tex
+++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.lang.code.tex
@@ -11,7 +11,7 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-% Copyright 2011-2016 Clemens Niederberger
+% Copyright 2011-2017 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -48,7 +48,7 @@
\tl_new:N \l__chemmacros_current_language_tl
\tl_const:Nx \c__chemmacros_keyword_prefix_tl
- { \chemmacros_if_compatiblity:nnT {>} {5.6} {chem-keyword-} }
+ { \chemmacros_if_compatibility:nnT {>} {5.6} {chem-keyword-} }
\prop_new:N \g_chemmacros_translations_prop
@@ -121,10 +121,9 @@
% #3: translation
\cs_new_protected:Npn \chemmacros_declare_translation:nnn #1#2#3
{
- % TODO: this should be \declaretranslation
- \@trnslt@declare@translation
- { \c__chemmacros_keyword_prefix_tl #1 }
+ \declaretranslation
{#2}
+ { \c__chemmacros_keyword_prefix_tl #1 }
{#3}
\prop_gput:Nnn \g_chemmacros_translations_prop {#1(#2)} {#3}
}
@@ -149,14 +148,14 @@
\cs_new:Npn \__chemmacros_parse_translate_list_entry:nnn #1#2#3 {}
-\cs_new_protected:Npn \__chemacros_parse_translate_list_entry:www #1(#2)\q_mark#3\q_stop
+\cs_new_protected:Npn \__chemmacros_parse_translate_list_entry:www #1(#2)\q_mark#3\q_stop
{ \__chemmacros_parse_translate_list_entry:nnn {#1} {#2} {#3} }
\cs_new_protected:Npn \chemmacros_for_all_translations_do:n #1
{
\cs_set:Npn \__chemmacros_parse_translate_list_entry:nnn ##1##2##3 {#1}
\prop_map_inline:Nn \g_chemmacros_translations_prop
- { \__chemacros_parse_translate_list_entry:www ##1 \q_mark ##2 \q_stop }
+ { \__chemmacros_parse_translate_list_entry:www ##1 \q_mark ##2 \q_stop }
}
\ChemCompatibilityFrom{5.7}