initial commit by dev prasad
This commit is contained in:
15
length_check.py
Normal file
15
length_check.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import re
|
||||
|
||||
# Keys that are used for buttons (options)
|
||||
button_keys = ['opt', 'btn', 'yes', 'no', 'confirm', 'change', 'cancel']
|
||||
|
||||
with open('src/main/resources/messages_ta.properties', 'r', encoding='utf-8') as f:
|
||||
for line in f:
|
||||
line = line.strip()
|
||||
if not line or line.startswith('#'):
|
||||
continue
|
||||
if '=' in line:
|
||||
key, val = line.split('=', 1)
|
||||
is_button = any(bk in key for bk in button_keys)
|
||||
if is_button and len(val) > 20:
|
||||
print(f"{key}={val} ({len(val)} chars)")
|
||||
Reference in New Issue
Block a user