aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/__.php
diff options
context:
space:
mode:
authorwinter2024-12-31 14:30:16 +0000
committerwinter2024-12-31 14:30:16 +0000
commitad554b48e7dc355d9b33eede98f4e3e829fd867e (patch)
treeeb11cd4357bdbe2964b9d04495ab2e6c7212d9ed /misc/__.php
parent721674973ca0a4d98cd081e9ff130c3356ddac03 (diff)
switch to my own translations system
i really don't like gettext
Diffstat (limited to 'misc/__.php')
-rw-r--r--misc/__.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/__.php b/misc/__.php
new file mode 100644
index 0000000..af6366a
--- /dev/null
+++ b/misc/__.php
@@ -0,0 +1,7 @@
+<?php
+
+use Digitigrade\Text;
+
+function __(string $key): string {
+ return (new Text($key))->__tostring();
+} \ No newline at end of file