Plugin/Companies/Languages.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 41 CC 1 SCAR 6.9
CC
1
Cov
0%
language
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Daje::Plugin::Companies::Languages;
2 use Mojo::Base -base, -signatures;
3 use v5.42;
4  
5 # NAME
6 # ====
7 #
8 # Daje::Plugin::Companies::Languages - Model class
9 #
10 # SYNOPSIS
11 # ========
12 #
13 #
14 #
15 #
16 # DESCRIPTION
17 # ===========
18 #
19 # Daje::Plugin::Companies::Languages is the standard routes
20 #
21 # METHODS
22 # =======
23 #
24 #
25 # LICENSE
26 # =======
27 #
28 # Copyright (C) janeskil1525.
29 #
30 # This library is free software; you can redistribute it and/or modify
31 # it under the same terms as Perl itself.
32 #
33 # AUTHOR
34 # ======
35 #
36 # janeskil1525 E<lt>janeskil1525@gmail.com
37 #
38  
39 # This file is generated automatically by Daje Tools 2026-03-15 11:17:38.
40 # It will be generated by Daje Tools again.
41 # <!-- Autogenerated file 2026-03-15 11:17:38 -->
42  
43 use Daje::Helper::Languages::InsertKeys;
44  
45 has 'db';
46  
47 sub language($self) {
48  
49 try {
50 my $tx = $self->db->begin;
51 my @keys;
52 push @keys, {
53 plugin => 'companies',
54 key => 'users',
55 field => 'table',
56 type => 'Label',
57 translation => '',
58 comment => '',
59 };
60 push @keys, {
61 plugin => 'companies',
62 key => 'users',
63 field => 'comment',
64 type => 'Label',
65 translation => 'Comment',
66 comment => 'Comment'
67 };
68 push @keys, {
69 plugin => 'companies',
70 key => 'users',
71 field => 'comment',
72 type => 'Tool tips',
73 translation => 'Comment',
74 comment => 'Comment'
75 };
76
77 push @keys, {
78 plugin => 'companies',
79 key => 'users',
80 field => 'companies',
81 type => 'Label',
82 translation => '',
83 comment => ''
84 };
85 push @keys, {
86 plugin => 'companies',
87 key => 'users',
88 field => 'companies',
89 type => 'Tool tips',
90 translation => '',
91 comment => ''
92 };
93
94 push @keys, {
95 plugin => 'companies',
96 key => 'users',
97 field => 'users',
98 type => 'Label',
99 translation => '',
100 comment => ''
101 };
102 push @keys, {
103 plugin => 'companies',
104 key => 'users',
105 field => 'users',
106 type => 'Tool tips',
107 translation => '',
108 comment => ''
109 };
110
111 push @keys, {
112 plugin => 'companies',
113 key => 'companies',
114 field => 'table',
115 type => 'Label',
116 translation => 'Companies',
117 comment => 'Companies table',
118 };
119 push @keys, {
120 plugin => 'companies',
121 key => 'companies',
122 field => 'registrationnumber',
123 type => 'Label',
124 translation => 'Registration number',
125 comment => 'Registration number'
126 };
127 push @keys, {
128 plugin => 'companies',
129 key => 'companies',
130 field => 'registrationnumber',
131 type => 'Tool tips',
132 translation => 'Registration number',
133 comment => 'Registration number'
134 };
135
136 push @keys, {
137 plugin => 'companies',
138 key => 'companies',
139 field => 'homepage',
140 type => 'Label',
141 translation => 'Homepage',
142 comment => 'Company homepage'
143 };
144 push @keys, {
145 plugin => 'companies',
146 key => 'companies',
147 field => 'homepage',
148 type => 'Tool tips',
149 translation => 'Company homepage',
150 comment => 'Company homepage'
151 };
152
153 push @keys, {
154 plugin => 'companies',
155 key => 'companies',
156 field => 'active',
157 type => 'Label',
158 translation => 'Active',
159 comment => 'Is the company active ?'
160 };
161 push @keys, {
162 plugin => 'companies',
163 key => 'companies',
164 field => 'active',
165 type => 'Tool tips',
166 translation => 'Is the company active ?',
167 comment => 'Is the company active ?'
168 };
169
170 push @keys, {
171 plugin => 'companies',
172 key => 'companies',
173 field => 'boards_office',
174 type => 'Label',
175 translation => 'Boards office',
176 comment => 'Boards office official address'
177 };
178 push @keys, {
179 plugin => 'companies',
180 key => 'companies',
181 field => 'boards_office',
182 type => 'Tool tips',
183 translation => 'Boards office official address',
184 comment => 'Boards office official address'
185 };
186
187 push @keys, {
188 plugin => 'companies',
189 key => 'companies',
190 field => 'workflow',
191 type => 'Label',
192 translation => '',
193 comment => ''
194 };
195 push @keys, {
196 plugin => 'companies',
197 key => 'companies',
198 field => 'workflow',
199 type => 'Tool tips',
200 translation => '',
201 comment => ''
202 };
203
204 push @keys, {
205 plugin => 'companies',
206 key => 'companies',
207 field => 'name',
208 type => 'Label',
209 translation => 'Name',
210 comment => 'Company name'
211 };
212 push @keys, {
213 plugin => 'companies',
214 key => 'companies',
215 field => 'name',
216 type => 'Tool tips',
217 translation => 'Company name',
218 comment => 'Company name'
219 };
220
221  
222 Daje::Helper::Languages::InsertKeys->new(
223 db => $self->db
224 )->process(
225 \@keys
226 );
227 $tx->commit();
228 } catch($e) {
229 say $e;
230 }
231 }
232  
233 1;
234  
235