diff --git a/include/functions.php b/include/functions.php
index ea4c0787..8bb06248 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -229,8 +229,8 @@ function formatUrl($url, $newWindow = false, $text = '', $linkClass = '') {
return addTempCode("$text");
}
function formatCode($text) {
- global $lang_functions;
- return addTempCode("
".$lang_functions['text_code']."
");
+ $textCode = nexus_trans("label.text_code");
+ return addTempCode("
".$textCode."
");
}
function formatImg($src, $enableImageResizer, $image_max_width, $image_max_height, $imgId = "") {
diff --git a/resources/lang/en/label.php b/resources/lang/en/label.php
index 6a30c196..8e8e4321 100644
--- a/resources/lang/en/label.php
+++ b/resources/lang/en/label.php
@@ -45,6 +45,7 @@ return [
'created_at_begin' => 'Created at begin',
'created_at_end' => 'Created at end',
'text_quote' => 'Quote',
+ 'text_code' => "CODE",
'setting' => [
'nav_text' => 'Setting',
'backup' => [
diff --git a/resources/lang/zh_CN/label.php b/resources/lang/zh_CN/label.php
index 3bc13b37..e548d934 100644
--- a/resources/lang/zh_CN/label.php
+++ b/resources/lang/zh_CN/label.php
@@ -45,6 +45,7 @@ return [
'created_at_begin' => '创建时间开始',
'created_at_end' => '创建时间结束',
'text_quote' => '引用',
+ 'text_code' => "代码",
'setting' => [
'nav_text' => '设置',
'backup' => [
diff --git a/resources/lang/zh_TW/label.php b/resources/lang/zh_TW/label.php
index af37333b..dbf48305 100644
--- a/resources/lang/zh_TW/label.php
+++ b/resources/lang/zh_TW/label.php
@@ -45,6 +45,7 @@ return [
'created_at_begin' => '創建時間開始',
'created_at_end' => '創建時間結束',
'text_quote' => '引用',
+ 'text_code' => "代碼",
'setting' => [
'nav_text' => '設置',
'backup' => [