diff --git a/site/download/voxvera-portable.zip b/site/download/voxvera-portable.zip index ae83a14..162240a 100644 Binary files a/site/download/voxvera-portable.zip and b/site/download/voxvera-portable.zip differ diff --git a/site/index.html b/site/index.html index cee5a82..aef93c8 100644 --- a/site/index.html +++ b/site/index.html @@ -331,10 +331,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -343,10 +343,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -354,10 +354,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -365,10 +365,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -376,10 +376,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -387,10 +387,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -398,10 +398,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -409,10 +409,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -420,10 +420,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -431,10 +431,10 @@
- Use Tor Browser

- to help spread this message go to
+ Use Tor Browser

+ to help spread this message go to
https://voxvera.org/
- click the button below to print + click the button below to print
QR Code @@ -442,22 +442,15 @@
-

TOP SECRET

-
DO NOT DISTRIBUTE
-

OPERATION VOX VERA

+

{{t_landing_title}}

+
{{t_landing_subtitle}}
+

{{t_landing_headline}}


-
Break free from censorship with VoxVera. An anonymous guerrilla marketing and message-spreading tool. Whether online or in the physical world, it can empower you to spread your ideas boldly, shielded by complete anonymity (if you host over Tor). Download the code, design a flyer site, host it online and amplify your message. - -Use memetic power to share your ideas in your school, workplace, online communities, or even globally. VoxVera ensures your message resonates far and wide, with tear-off sections featuring unique URLs and QR codes for easy reprinting. - -Privacy can be maintained. Flyers can be shared via the Tor network, protecting hoster and users from censorship. - -Join us in a revolution that values truth and transparency. Together, we can build a network of informed citizens who are unafraid to speak out. -
+
{{t_landing_content}}
-Get VoxVera and start spreading your message.

+{{t_landing_url_message}}

https://github.com/PR0M3TH3AN/VoxVera
QR Code @@ -465,14 +458,14 @@ Join us in a revolution that values truth and transparency. Together, we can bui

- - Download Tool & Source + + Download Tool & Source
diff --git a/voxvera/cli.py b/voxvera/cli.py index 29cf681..69e3f34 100644 --- a/voxvera/cli.py +++ b/voxvera/cli.py @@ -363,10 +363,22 @@ def build_assets( # 1. Statically replace localization tokens {{t_web_...}} # This ensures the flyer is translated even with JS disabled. lang_data = all_locales.get(data.get("lang", "en"), all_locales.get("en", {})) + + # Web tokens (labels, buttons) web_tokens = lang_data.get("web", {}) for token, translation in web_tokens.items(): html = html.replace(f"{{{{t_web_{token}}}}}", str(translation)) + # Landing tokens (should be cleared for regular flyers) + landing_tokens = lang_data.get("landing", {}) + for token in landing_tokens.keys(): + html = html.replace(f"{{{{t_landing_{token}}}}}", "") + + # Explicitly handle content and url_message if they were t_landing'd + # We want the user's custom content to win + html = html.replace("{{t_landing_content}}", "{{content}}") + html = html.replace("{{t_landing_url_message}}", "{{url_message}}") + # 2. Statically replace config placeholders {{key}} for key, value in data.items(): html = html.replace(f"{{{{{key}}}}}", str(value)) @@ -753,7 +765,7 @@ def build_site(): # 2. Update relative path for download html = html.replace("download/download.zip", "download/voxvera-portable.zip") - # 3. Inject site-specific config data + # 3. Inject site-specific config data (handles any remaining {{key}} placeholders) for key, value in data.items(): html = html.replace(f"{{{{{key}}}}}", str(value)) diff --git a/voxvera/src/index-master.html b/voxvera/src/index-master.html index 30c3249..5786fc3 100644 --- a/voxvera/src/index-master.html +++ b/voxvera/src/index-master.html @@ -331,10 +331,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -343,10 +343,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -354,10 +354,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -365,10 +365,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -376,10 +376,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -387,10 +387,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -398,10 +398,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -409,10 +409,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -420,10 +420,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -431,10 +431,10 @@
- {{t_web_tear_off_tor_browser}}

- {{t_web_tear_off_desc}}
+ {{t_web_tear_off_tor_browser}}

+ {{t_web_tear_off_desc}}
{{tear_off_link}}
- {{t_web_tear_off_footer}} + {{t_web_tear_off_footer}}
QR Code @@ -442,15 +442,15 @@
-

{{title}}

-
{{subtitle}}
-

{{headline}}

+

{{t_landing_title}}

+
{{t_landing_subtitle}}
+

{{t_landing_headline}}


-
{{content}}
+
{{t_landing_content}}
-{{url_message}}

+{{t_landing_url_message}}

{{url}}
QR Code @@ -458,14 +458,14 @@

- - {{t_web_download_button}} + + {{t_web_download_button}}