Project

General

Profile

Feature #10617

Extend WMessageResourceBundle::use to allow for directories

Added by Roel Standaert about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
07/08/2022
Due date:
% Done:

0%

Estimated time:

Description

WMessageResourceBundle::use may work well for simple translatable strings, but it would be nice for templates if we could put each XHTML fragment in its own file, like:

templates/
├── footer.xml
└── header.xml

Wt::WString::tr("footer") would then yield the contents of footer.xml.

Optionally, we could also treat files with different extensions as plain text instead of XHTML.

#1

Updated by Roel Standaert about 1 month ago

  • Tracker changed from Bug to Feature

Also available in: Atom PDF