| 1 |
# translation_domain.py |
| 2 |
# |
| 3 |
# Copyright 2022 James Westman <[email protected]> |
| 4 |
# |
| 5 |
# This file is free software; you can redistribute it and/or modify it |
| 6 |
# under the terms of the GNU Lesser General Public License as |
| 7 |
# published by the Free Software Foundation; either version 3 of the |
| 8 |
# License, or (at your option) any later version. |
| 9 |
# |
| 10 |
# This file is distributed in the hope that it will be useful, but |
| 11 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
# Lesser General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU Lesser General Public |
| 16 |
# License along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
# |
| 18 |
# SPDX-License-Identifier: LGPL-3.0-or-later |
| 19 |
|
| 20 |
from .common import * |
| 21 |
|
| 22 |
|
| 23 |
class TranslationDomain(AstNode): |
| 24 |
grammar = Statement( |
| 25 |
"translation-domain", |
| 26 |
UseQuoted("domain"), |
| 27 |
) |
| 28 |
|
| 29 |
@property |
| 30 |
def domain(self): |
| 31 |
return self.tokens["domain"] |
| 32 |
|
| 33 |
@docs() |
| 34 |
def ref_docs(self): |
| 35 |
return get_docs_section("Syntax TranslationDomain") |